source: branches/fc15-dev/server/fedora/config/etc/syslog-ng/syslog-ng.conf @ 1960

Last change on this file since 1960 was 1960, checked in by achernya, 13 years ago
Disable syslog-ng stats logs syslog-ng by default prints a stats message every 600 seconds. These message don't provide any useful information to us, and make logwatch longer. This change prevents them from ever being printed, so they no longer clutter the logs.
File size: 2.5 KB
Line 
1@version:3.2
2
3# syslog-ng configuration file.
4#
5# This should behave pretty much like the original syslog on RedHat. But
6# it could be configured a lot smarter.
7#
8# See syslog-ng(8) and syslog-ng.conf(5) for more information.
9#
10
11options {
12        flush_lines (0);
13        time_reopen (10);
14        log_fifo_size (1000);
15        long_hostnames (off);
16        use_dns (no);
17        use_fqdn (no);
18        create_dirs (no);
19        keep_hostname (yes);
20        stats_freq (0);
21};
22
23source s_sys {
24        file ("/proc/kmsg" program_override("kernel: "));
25        unix-stream ("/dev/log");
26        internal();
27        # udp(ip(0.0.0.0) port(514));
28};
29
30destination d_cons { file("/dev/console"); };
31destination d_mesg { file("/var/log/messages"); };
32destination d_auth { file("/var/log/secure"); };
33destination d_mail { file("/var/log/maillog" flush_lines(10)); };
34destination d_spol { file("/var/log/spooler"); };
35destination d_boot { file("/var/log/boot.log"); };
36destination d_cron { file("/var/log/cron"); };
37#destination d_kern { file("/var/log/kern"); };
38destination d_mlal { usertty("*"); };
39
40destination d_zroot { program("/etc/syslog-ng/d_zroot.pl"); };
41#destination d_watch { program("/usr/local/libexec/watch-syslog.py"); };
42
43#filter f_kernel     { facility(kern); };
44filter f_default    { level(info..emerg) and
45                        not (facility(mail)
46                        or facility(authpriv)
47                        or facility(cron)); };
48filter f_auth       { facility(authpriv); };
49filter f_mail       { facility(mail); };
50filter f_emergency  { level(emerg); };
51filter f_news       { facility(uucp) or
52                        (facility(news)
53                        and level(crit..emerg)); };
54filter f_boot   { facility(local7); };
55filter f_cron   { facility(cron); };
56
57filter f_oom { facility(kern) and (match("Out of memory:") or match("Killed process")); };
58
59#log { source(s_sys); filter(f_kernel); destination(d_cons); };
60#log { source(s_sys); filter(f_kernel); destination(d_kern); };
61log { source(s_sys); filter(f_default); destination(d_mesg); };
62log { source(s_sys); filter(f_auth); destination(d_auth); };
63log { source(s_sys); filter(f_mail); destination(d_mail); };
64log { source(s_sys); filter(f_emergency); destination(d_mlal); };
65log { source(s_sys); filter(f_news); destination(d_spol); };
66log { source(s_sys); filter(f_boot); destination(d_boot); };
67log { source(s_sys); filter(f_cron); destination(d_cron); };
68
69log { source(s_sys); filter(f_auth); destination(d_zroot); };
70#log { source(s_sys); filter(f_default); destination(d_watch); };
71log { source(s_sys); filter(f_oom); destination(d_zroot); };
72
73# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:
Note: See TracBrowser for help on using the repository browser.