Changeset 1155 for branches/fc11-dev/server/fedora/config/etc
- Timestamp:
- Jun 3, 2009, 11:23:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc11-dev/server/fedora/config/etc/syslog-ng/syslog-ng.conf
r817 r1155 6 6 # See syslog-ng(8) and syslog-ng.conf(5) for more information. 7 7 # 8 # 20000925 gb@sysfive.com9 #10 # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 10 Aug 200211 # - for Red Hat 7.312 # - totally do away with klogd13 # - add message "kernel:" as is done with klogd.14 #15 # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 200216 # - use the log_prefix option as per Balazs Scheidler's email17 #18 # Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 05 Apr 200319 # - corrected filters 'f_filter2' and 'f_filter6'20 # these filters were only allowing messages of one specific21 # priority level; they should be allowing messages from that22 # priority and upper levels.23 #24 # Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 25 Jan 200525 # - Don't sync the d_mail destination26 #27 # Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 01 Feb 200528 # - /proc/kmsg is a file not a pipe.29 # (https://lists.balabit.hu/pipermail/syslog-ng/2005-February/006963.html)30 #31 # Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 31 May 200732 # - increase the number of unix-stream max-connections (syslog-ng 2.0.4)33 #34 # Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 26 July 200735 # - revert previous unix-stream max-connections change36 # (the new unix-stream max-connections default in syslog-ng 2.0.5 is 256)37 #38 8 39 9 options { 40 41 42 43 44 45 46 47 10 sync (0); 11 time_reopen (10); 12 log_fifo_size (1000); 13 long_hostnames (off); 14 use_dns (no); 15 use_fqdn (no); 16 create_dirs (no); 17 keep_hostname (yes); 48 18 }; 49 19 50 20 source s_sys { 51 file ("/proc/kmsg" log_prefix("kernel: ")); 52 unix-stream ("/dev/log"); 53 internal(); 54 # udp(ip(0.0.0.0) port(514)); 55 # tcp(ip(0.0.0.0) port(514)); 21 file ("/proc/kmsg" log_prefix("kernel: ")); 22 unix-stream ("/dev/log"); 23 internal(); 24 # udp(ip(0.0.0.0) port(514)); 56 25 }; 57 26 … … 63 32 destination d_boot { file("/var/log/boot.log"); }; 64 33 destination d_cron { file("/var/log/cron"); }; 34 #destination d_kern { file("/var/log/kern"); }; 65 35 destination d_mlal { usertty("*"); }; 66 36 67 destination d_zroot { program("/etc/syslog-ng/d_zroot.pl"); };68 #destination d_watch { program("/usr/local/libexec/watch-syslog.py"); }; 69 70 #filter f_filter1 { facility(kern); }; 71 filter f_filter2 { level(info..emerg) and 72 not facility(mail,authpriv,cron); };73 filter f_ filter3 { facility(authpriv); };74 filter f_ filter4 { facility(mail); };75 filter f_ filter5 { level(emerg); };76 filter f_filter6 { facility(uucp) or 77 (facility(news)and level(crit..emerg)); };78 filter f_ filter7{ facility(local7); };79 filter f_ filter8{ facility(cron); };37 #filter f_kernel { facility(kern); }; 38 filter f_default { level(info..emerg) and 39 not (facility(mail) 40 or facility(authpriv) 41 or facility(cron)); }; 42 filter f_auth { facility(authpriv); }; 43 filter f_mail { facility(mail); }; 44 filter f_emergency { level(emerg); }; 45 filter f_news { facility(uucp) or 46 (facility(news) 47 and level(crit..emerg)); }; 48 filter f_boot { facility(local7); }; 49 filter f_cron { facility(cron); }; 80 50 81 51 filter f_oom { facility(kern) and (match("Out of memory:") or match("Killed process")); }; 82 52 83 #log { source(s_sys); filter(f_filter1); destination(d_cons); }; 84 log { source(s_sys); filter(f_filter2); destination(d_mesg); }; 85 log { source(s_sys); filter(f_filter3); destination(d_auth); }; 86 log { source(s_sys); filter(f_filter4); destination(d_mail); }; 87 log { source(s_sys); filter(f_filter5); destination(d_mlal); }; 88 log { source(s_sys); filter(f_filter6); destination(d_spol); }; 89 log { source(s_sys); filter(f_filter7); destination(d_boot); }; 90 log { source(s_sys); filter(f_filter8); destination(d_cron); }; 53 #log { source(s_sys); filter(f_kernel); destination(d_cons); }; 54 #log { source(s_sys); filter(f_kernel); destination(d_kern); }; 55 log { source(s_sys); filter(f_default); destination(d_mesg); }; 56 log { source(s_sys); filter(f_auth); destination(d_auth); }; 57 log { source(s_sys); filter(f_mail); destination(d_mail); }; 58 log { source(s_sys); filter(f_emergency); destination(d_mlal); }; 59 log { source(s_sys); filter(f_news); destination(d_spol); }; 60 log { source(s_sys); filter(f_boot); destination(d_boot); }; 61 log { source(s_sys); filter(f_cron); destination(d_cron); }; 91 62 92 log { source(s_sys); filter(f_ filter3); destination(d_zroot); };93 #log { source(s_sys); filter(f_ filter2); destination(d_watch); };63 log { source(s_sys); filter(f_auth); destination(d_zroot); }; 64 #log { source(s_sys); filter(f_default); destination(d_watch); }; 94 65 log { source(s_sys); filter(f_oom); destination(d_zroot); }; 95 66 96 # vim: set ai ts=4 sw=4 sts=4et:67 # vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:
Note: See TracChangeset
for help on using the changeset viewer.