Commits

Dustin Hatch committed a70ae43

Added syslog-ng and logrotate configuration for distccd logging

Comments (0)

Files changed (3)

linux/etc/logrotate.d/distccd

+/var/log/distccd.log {
+    missingok
+    sharedscripts
+    postrotate
+        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
+    endscript
+}

linux/etc/syslog-ng/syslog-ng.conf.d/README

+# In order to make syslog-ng read the configuration files in this directory,
+# you need to use the `include` directive in the main syslog-ng.conf file:
+#
+#     include "syslog-ng.conf.d";
+#
+# If you want to be able to use the *final* flag on log paths to prevent
+# messages from showing up in the catchall locations (i.e. /var/log/messages,
+# /dev/tty12, and/or /dev/console), you need to place the include directive
+# **before** the log paths for those destinations.

linux/etc/syslog-ng/syslog-ng.conf.d/distccd.conf

+filter distccd_filter {
+    program("distccd");
+};
+
+destination distccd_file {
+    file("/var/log/distccd.log");
+};
+
+log {
+    source(src);
+    filter(distccd_filter);
+    destination(distccd_file);
+    flags(final);
+};