]> git.pld-linux.org Git - packages/syslog-ng.git/blobdiff - syslog-ng-simple.conf
- 3.3.5
[packages/syslog-ng.git] / syslog-ng-simple.conf
index 0f4ea926a05016e44950c30d25ecfe731158b125..f42106f91b3188f02ed13a72133aad3ee50d101c 100644 (file)
@@ -21,15 +21,20 @@ options {
 
 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); };
This page took 0.080847 seconds and 4 git commands to generate.