X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=syslog-ng-simple.conf;h=34491ce74b0b725fb37b9c4faea6afb987fc31e1;hb=06e667896b2252fcc414d13c696493be9e23e8cb;hp=0f4ea926a05016e44950c30d25ecfe731158b125;hpb=d219d3bbbcaf5086c6bb97d304ec0244ad772e67;p=packages%2Fsyslog-ng.git diff --git a/syslog-ng-simple.conf b/syslog-ng-simple.conf index 0f4ea92..34491ce 100644 --- a/syslog-ng-simple.conf +++ b/syslog-ng-simple.conf @@ -19,14 +19,17 @@ options { stats_freq(43200); }; -source s_kernel { file ("/proc/kmsg" program_override("kernel: ")); }; +source s_kernel { file ("/proc/kmsg" program_override("kernel")); }; source s_src { unix-stream("/dev/log"); internal(); }; +# if using systemd, comment out the line 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); };