]>
Commit | Line | Data |
---|---|---|
d12ef724 ER |
1 | @version: 3.0 |
2 | # | |
3 | # Syslog-ng configuration for PLD Linux | |
4 | # | |
5 | # Copyright (c) 1999 anonymous | |
6 | # Copyright (c) 1999 Balazs Scheidler | |
7 | # $Id$ | |
8 | # | |
9 | # Syslog-ng configuration file | |
10 | ||
11 | options { | |
12 | long_hostnames(off); | |
13 | flush_lines(0); | |
14 | ||
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). | |
19 | stats_freq(43200); | |
20 | }; | |
21 | ||
a66b0ee6 | 22 | source s_kernel { file ("/proc/kmsg" program_override("kernel")); }; |
d219d3bb | 23 | source s_src { unix-stream("/dev/log"); internal(); }; |
a66b0ee6 | 24 | # if using systemd, comment out the line above, and uncomment line below |
ceb76f95 | 25 | #source s_src { unix-dgram("/run/systemd/journal/syslog"); internal(); }; |
d12ef724 | 26 | |
da63ea7f | 27 | destination d_mail { file("/var/log/maillog"); }; |
d219d3bb | 28 | destination d_messages { file("/var/log/messages"); }; |
d12ef724 | 29 | destination d_kernel { file("/var/log/kernel"); }; |
d219d3bb | 30 | destination d_console_all { file("/dev/tty12"); }; |
da63ea7f | 31 | |
ceb76f95 | 32 | filter f_kern { facility(kern); }; |
da63ea7f | 33 | filter f_mail { facility(mail); }; |
d12ef724 ER |
34 | |
35 | log { source(s_kernel); destination(d_kernel); }; | |
d219d3bb | 36 | log { source(s_src); destination(d_console_all); }; |
da63ea7f ER |
37 | log { source(s_src); filter(f_mail); destination(d_mail); }; |
38 | log { source(s_src); destination(d_messages); flags(fallback); }; |