packages: syslog-ng/syslog-ng-simple.conf (NEW) - simple configuration with...

glen glen at pld-linux.org
Mon Jun 1 15:21:46 CEST 2009


Author: glen                         Date: Mon Jun  1 13:21:46 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- simple configuration with just /var/log/messages and kernel

---- Files affected:
packages/syslog-ng:
   syslog-ng-simple.conf (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/syslog-ng/syslog-ng-simple.conf
diff -u /dev/null packages/syslog-ng/syslog-ng-simple.conf:1.1
--- /dev/null	Mon Jun  1 15:21:46 2009
+++ packages/syslog-ng/syslog-ng-simple.conf	Mon Jun  1 15:21:41 2009
@@ -0,0 +1,32 @@
+ at 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); };
================================================================


More information about the pld-cvs-commit mailing list