source s_kernel { file ("/proc/kmsg" program_override("kernel: ")); };
source s_src { unix-stream("/dev/log"); internal(); };
+# if using systemd, comment out the two lines above, and uncomment line below
+#source s_src { unix-dgram("/run/systemd/journal/syslog"); internal(); };
destination d_mail { file("/var/log/maillog"); };
destination d_messages { file("/var/log/messages"); };
destination d_kernel { file("/var/log/kernel"); };
destination d_console_all { file("/dev/tty12"); };
+filter f_kern { facility(kern); };
filter f_mail { facility(mail); };
log { source(s_kernel); destination(d_kernel); };
+# if using systemd, comment out the line above, and uncomment line below
+#log { source(s_src); filter(f_kern); destination(d_kernel); };
log { source(s_src); destination(d_console_all); };
log { source(s_src); filter(f_mail); destination(d_mail); };
log { source(s_src); destination(d_messages); flags(fallback); };