日期:2014-05-16 浏览次数:20801 次
filter f_local6 {facility(local6);}; filter f_level {level(debug);}; destination d_template1 {udp('127.0.0.1' port(514) template("<166>$DATE $HOST $MSGHDR$MSG\n")); }; log { source(src);filter(f_tag_acs);filter(f_local6);destination( d_template1);};
source src { file("/proc/kmsg"); unix-stream("/dev/log" max-connections(256)); internal(); }; source s_remote { udp(ip(0.0.0.0) port(514)); }; filter f_facility{ facility (local4 ); }; filter f_level{ level (info ); }; filter f_tag { match('acs') ; }; destination dest{ file('/var/log/filter1.log');}; log { source(src); source(s_remote); filter(f_facility; filter(f_level); filter(f_tag); destination(dest); };
Numerical Code Facility 0 kernel messages 1 user-level messages 2 mail system 3 system daemons 4 security/authorization messages 5 messages generated internally by syslogd 6 line printer subsystem 7 network news subsystem 8 UUCP subsystem 9 clock daemon 10 security/authorization messages 11 FTP daemon 12 NTP subsystem 13 log audit 14 log alert 15 clock daemon 16-23 locally used facilities (local0-local7)
Numerical Code Severity 0 Emergency: system is unusable 1 Alert: action must be taken immediately 2 Critical: critical conditions 3 Error: error conditions 4 Warning: warning conditions 5 Notice: normal but significant condition 6 Informational: informational messages 7 Debug: debug-level messages