]>
Commit | Line | Data |
---|---|---|
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 | ||
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(); }; | |
26 | ||
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"); }; | |
31 | ||
32 | filter f_kern { facility(kern); }; | |
33 | filter f_mail { facility(mail); }; | |
34 | ||
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); }; |