]> git.pld-linux.org Git - packages/syslog-ng.git/commitdiff
- simple configuration with just /var/log/messages and kernel
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 1 Jun 2009 13:21:41 +0000 (13:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    syslog-ng-simple.conf -> 1.1

syslog-ng-simple.conf [new file with mode: 0644]

diff --git a/syslog-ng-simple.conf b/syslog-ng-simple.conf
new file mode 100644 (file)
index 0000000..b8ff236
--- /dev/null
@@ -0,0 +1,32 @@
+@version: 3.0
+#
+# Syslog-ng configuration for PLD Linux
+#
+# Copyright (c) 1999 anonymous
+# Copyright (c) 1999 Balazs Scheidler
+# $Id$
+#
+# Syslog-ng configuration file
+
+options {
+       long_hostnames(off);
+       flush_lines(0);
+
+       # The default action of syslog-ng 1.6.0 is to log a STATS line
+       # to the file every 10 minutes.  That's pretty ugly after a while.
+       # Change it to every 12 hours so you get a nice daily update of
+       # how many messages syslog-ng missed (0).
+       stats_freq(43200);
+};
+
+source s_kernel { file ("/proc/kmsg" program_override("kernel: ")); };
+source s_src   { unix-stream("/dev/log"); internal(); };
+
+destination d_messages { file("/var/log/messages"); };
+destination d_kernel      { file("/var/log/kernel"); };
+destination d_console_all      { file("/dev/tty12"); };
+
+log { source(s_kernel); destination(d_kernel); };
+#log { source(s_src); destination(d_console_all); };
+log { source(s_src); destination(d_messages); };
+#log { source(s_src); destination(d_messages); flags(fallback); };
This page took 0.076563 seconds and 4 git commands to generate.