X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=syslog-ng.conf;h=b56f628222afd688101922ca931203386d5f01a3;hb=2890986e33c8cbaed3bb5eb58b687d88d0c3018c;hp=613698a55163abe42b6618df3ab0281b890f48f0;hpb=17cfc3368426ae28c0c668c7bf2e8a3f6c398e7b;p=packages%2Fsyslog-ng.git diff --git a/syslog-ng.conf b/syslog-ng.conf index 613698a..b56f628 100644 --- a/syslog-ng.conf +++ b/syslog-ng.conf @@ -1,4 +1,4 @@ -@version: 3.0 +@version: 3.5 # # Syslog-ng configuration for PLD Linux # @@ -18,18 +18,22 @@ options { time_reopen(10); time_reap(360); mark_freq(600); - log_fifo_size(2048); + threaded(yes); }; source s_sys { - pipe ("/proc/kmsg" program_override("kernel")); - unix-stream("/dev/log" max-connections(1000)); + 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"); +# and add ForwardToSyslog=yes to /etc/systemd/journald.conf 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"); };