X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=syslog-ng.conf;h=1b5843a110ad21f667ca8349d98d41a112141dcf;hb=fd7236ec84ba4b9237ce0e43fee8dfc58f27ce08;hp=cfd3f156b62a6acb9532047c36b227bec709a64e;hpb=3daf995684a5dc108042f3553b122757d446f025;p=packages%2Fsyslog-ng.git diff --git a/syslog-ng.conf b/syslog-ng.conf index cfd3f15..1b5843a 100644 --- a/syslog-ng.conf +++ b/syslog-ng.conf @@ -1,4 +1,5 @@ -@version: 3.3 +@version: 3.12 +@include "scl.conf" # # Syslog-ng configuration for PLD Linux # @@ -21,15 +22,19 @@ options { threaded(yes); }; -source s_sys { - file ("/proc/kmsg" program_override("kernel")); - unix-stream("/dev/log" max-connections(1000)); +source s_sys { +# NOTE: +# if you are running under systemd and just merged config then you may +# need to manually fix /dev/log symlink: +# # ln -s /run/systemd/journal/dev-log /dev/log + system(); internal(); }; # uncomment the line below if you want to setup syslog server #source s_net { udp(); }; +# if using systemd, an IP address instead of name may be required here #destination d_loghost { udp("loghost" port(514)); }; destination d_kern { file("/var/log/kernel"); }; @@ -38,7 +43,7 @@ destination d_authlog { file("/var/log/secure"); }; destination d_mail { file("/var/log/maillog"); }; destination d_uucp { file("/var/log/spooler"); }; destination d_debug { file("/var/log/debug"); }; -destination d_cron { file("/var/log/cron" owner(root) group(crontab) perm(0660)); }; +destination d_cron { file("/var/log/cron"); }; destination d_syslog { file("/var/log/syslog"); }; destination d_daemon { file("/var/log/daemon"); }; destination d_lpr { file("/var/log/lpr"); };