3 # Syslog-ng configuration for PLD Linux
5 # See syslog-ng(8) and syslog-ng.conf(5) for more information.
25 file ("/proc/kmsg" program_override("kernel"));
27 unix-stream("/dev/log" max-connections(1000) log_iw_size(100000));
28 # if using systemd, comment out the line above, and uncomment line below
29 # unix-dgram("/run/systemd/journal/syslog");
30 # NOTE: if you are running under systemd and fixed config then you may need to manually fix /dev/log symlink:
31 # ln -s /run/systemd/journal/dev-log /dev/log
36 destination d_mail { file("/var/log/maillog"); };
37 destination d_messages { file("/var/log/messages"); };
38 destination d_kern { file("/var/log/kernel"); };
39 destination d_console_all { file("/dev/tty12"); };
41 # if using systemd, an IP address instead of name may be required here
42 #destination d_loghost { udp("loghost" port(514)); };
44 filter f_kern { facility(kern); };
45 filter f_mail { facility(mail); };
47 log { source(s_sys); filter(f_kern); destination(d_kern); };
48 log { source(s_sys); filter(f_mail); destination(d_mail); };
50 # This is a catchall statement, and should catch all messages which were not
51 # accepted any of the previous statements.
52 # If using d_console_all or network logging, remove flags(fallback);
53 log { source(s_sys); destination(d_messages); flags(fallback); };
54 #log { source(s_sys); destination(d_messages); };
56 # Log all messages to tty12
57 #log { source(s_sys); destination(d_console_all); };
60 #log { source(s_sys); destination(d_loghost); };