3 # Syslog-ng configuration for PLD Linux
5 # Copyright (c) 1999 anonymous
6 # Copyright (c) 1999 Balazs Scheidler
9 # Syslog-ng configuration file
15 # The default action of syslog-ng 1.6.0 is to log a STATS line
16 # to the file every 10 minutes. That's pretty ugly after a while.
17 # Change it to every 12 hours so you get a nice daily update of
18 # how many messages syslog-ng missed (0).
22 source s_kernel { file ("/proc/kmsg" program_override("kernel")); };
23 source s_src { unix-stream("/dev/log"); internal(); };
24 # if using systemd, comment out the line above, and uncomment line below
25 #source s_src { unix-dgram("/run/systemd/journal/syslog"); internal(); };
27 destination d_mail { file("/var/log/maillog"); };
28 destination d_messages { file("/var/log/messages"); };
29 destination d_kernel { file("/var/log/kernel"); };
30 destination d_console_all { file("/dev/tty12"); };
32 filter f_kern { facility(kern); };
33 filter f_mail { facility(mail); };
35 log { source(s_kernel); destination(d_kernel); };
36 log { source(s_src); destination(d_console_all); };
37 log { source(s_src); filter(f_mail); destination(d_mail); };
38 log { source(s_src); destination(d_messages); flags(fallback); };