# people so turn it down to once an hour. Set it to zero
# if you don't want the functionality at all.
mark_freq(3600);
+
+ frac_digits(3);
+ ts_format(iso);
};
source src {
unix-stream("/dev/log" max-connections(256));
internal();
file("/proc/kmsg");
- udp();
+ #udp();
};
#########################################################
# Logging-Ziele
destination d_syslog { file("/var/log/syslog"); };
-destination d_fac { file("/var/log/facility/$FACILITY"); };
+destination d_fac { file("/var/log/syslog.d/$FACILITY"); };
destination d_debug { file("/var/log/debug"); };
destination d_all { file("/var/log/all"); };
destination d_messages { file("/var/log/messages"); };
#destination d_xconsole { pipe("/dev/xconsole"); };
destination d_xconsole { pipe("/dev/console"); };
+# By default messages are logged to tty12...
+#destination console_all { file("/dev/tty12"); };
+# ...if you intend to use /dev/console for programs like xconsole
+# you can comment out the destination line above that references /dev/tty12
+# and uncomment the line below.
+#destination console_all { file("/dev/console"); };
+
#########################################################
# Filter-Definitionen
log { source(src); filter(f_debug); destination(d_debug); };
log { source(src); destination(d_all); };
-# By default messages are logged to tty12...
-destination console_all { file("/dev/tty12"); };
-# ...if you intend to use /dev/console for programs like xconsole
-# you can comment out the destination line above that references /dev/tty12
-# and uncomment the line below.
-#destination console_all { file("/dev/console"); };
-
#log { source(src); destination(messages); };
#log { source(src); destination(console_all); };
--- /dev/null
+@version: 3.2
+# $Header: /etc/syslog-ng/.rcs/syslog-ng.conf,v 1.3 2011/07/11 07:20:59 root Exp $
+#
+# Syslog-ng default configuration file for Gentoo Linux
+
+options {
+ long_hostnames(off);
+ chain_hostnames(no);
+ flush_lines(0);
+
+ # The default action of syslog-ng 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);
+ # The default action of syslog-ng is to log a MARK line
+ # to the file every 20 minutes. That's seems high for most
+ # people so turn it down to once an hour. Set it to zero
+ # if you don't want the functionality at all.
+ mark_freq(3600);
+};
+
+source src {
+ unix-stream("/dev/log" max-connections(256));
+ internal();
+ file("/proc/kmsg");
+ udp();
+};
+
+#########################################################
+# Logging-Ziele
+
+destination d_syslog { file("/var/log/syslog"); };
+destination d_fac { file("/var/log/facility/$FACILITY"); };
+destination d_debug { file("/var/log/debug"); };
+destination d_all { file("/var/log/all"); };
+destination d_messages { file("/var/log/messages"); };
+
+destination d_console { usertty("root"); };
+destination d_console_all { usertty("*"); };
+#destination loghost { udp("loghost" port(999)); };
+
+# By default messages are logged to tty12...
+destination d_console_12 { file("/dev/tty12"); };
+# ...if you intend to use /dev/console for programs like xconsole
+# you can comment out the destination line above that references /dev/tty12
+# and uncomment the line below.
+#destination console_all { file("/dev/console"); };
+
+#destination d_xconsole { pipe("/dev/xconsole"); };
+destination d_xconsole { pipe("/dev/console"); };
+
+#########################################################
+# Filter-Definitionen
+
+filter f_syslog { not facility(authpriv, mail); };
+filter f_debug { not facility(auth, authpriv, news, mail); };
+filter f_messages { level(info..emerg)
+ and not facility(auth, authpriv, mail, news); };
+filter f_emergency { level(emerg); };
+
+filter f_warnings { level(warn..emerg)
+ and not facility( mail, news); };
+
+filter f_info { level(info); };
+filter f_notice { level(notice); };
+filter f_warn { level(warn); };
+filter f_crit { level(crit); };
+filter f_err { level(err); };
+filter f_alarm { level(crit, alert); };
+
+########################################################
+# Log-Definitionen
+
+log { source(src); destination(d_fac); };
+
+log { source(src); filter(f_messages); destination(d_messages); };
+#log { source(src); filter(f_messages); destination(d_xconsole); };
+log { source(src); filter(f_warnings); destination(d_console_12); };
+log { source(src); filter(f_alarm); destination(d_console); };
+log { source(src); filter(f_emergency); destination(d_console_all); };
+log { source(src); filter(f_syslog); destination(d_syslog); };
+log { source(src); filter(f_debug); destination(d_debug); };
+log { source(src); destination(d_all); };
+
+# By default messages are logged to tty12...
+destination console_all { file("/dev/tty12"); };
+# ...if you intend to use /dev/console for programs like xconsole
+# you can comment out the destination line above that references /dev/tty12
+# and uncomment the line below.
+#destination console_all { file("/dev/console"); };
+
+#log { source(src); destination(messages); };
+#log { source(src); destination(console_all); };