X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=syslog-ng-simple.conf;h=48ba9211faa0bab39efc99cf41eb74e86fb6df07;hb=39261fbb5903f57b19fae2257ee756ac6c123753;hp=f445656280c29b22f728d669eb0faffd7d5d4ea5;hpb=70014d1e26d9629e6c9212e2b09582916ce4cbec;p=packages%2Fsyslog-ng.git diff --git a/syslog-ng-simple.conf b/syslog-ng-simple.conf index f445656..48ba921 100644 --- a/syslog-ng-simple.conf +++ b/syslog-ng-simple.conf @@ -1,6 +1,6 @@ -@version: 3.6 +@version: 3.8 # -# Syslog-ng configuration for TLD Linux +# Syslog-ng configuration for PLD Linux # # See syslog-ng(8) and syslog-ng.conf(5) for more information. # @@ -23,7 +23,13 @@ options { source s_sys { file ("/proc/kmsg" program_override("kernel")); + unix-stream("/dev/log" max-connections(1000) log_iw_size(100000)); +# if using systemd, comment out the line above, and uncomment line below +# unix-dgram("/run/systemd/journal/syslog"); +# NOTE: if you are running under systemd and fixed config then you may need to manually fix /dev/log symlink: +# ln -s /run/systemd/journal/dev-log /dev/log +# internal(); }; @@ -32,6 +38,7 @@ destination d_messages { file("/var/log/messages"); }; destination d_kern { file("/var/log/kernel"); }; destination d_console_all { file("/dev/tty12"); }; +# if using systemd, an IP address instead of name may be required here #destination d_loghost { udp("loghost" port(514)); }; filter f_kern { facility(kern); };