[syslog-ng] filter on level don't work with kernel source

Olleg Samoylov olleg at mipt.ru
Mon May 22 10:56:24 CEST 2006


$ syslog-ng --version
syslog-ng 1.9.9

subj

from syslog-ng.conf:
source s_all {
         # message generated by Syslog-NG
         internal();
         # function to send logs to)
         unix-stream("/dev/log");
         # messages from the kernel
         file("/proc/kmsg" log_prefix("kernel: "));
};
filter f_at_least_crit { level(crit..emerg); };
log {
         source(s_all);
         filter(f_at_least_crit);
         destination(d_email2root);
};

And I get emails like:

Date: 2006-04-05T14:59:23+04:00
Facility: kern
Level: debug
Program: kernel

ISO 9660 Extensions: Microsoft Joliet Level 3

Date: 2006-04-05T14:59:23+04:00
Facility: kern
Level: debug
Program: kernel

ISO 9660 Extensions: Microsoft Joliet Level 3
-- 
Olleg Samoylov


More information about the syslog-ng mailing list