[syslog-ng] Log all msgs but a specific filter

Siem Korteweg Siem.Korteweg at qnh.nl
Thu Jan 21 21:58:17 CET 2010


Paul,

use the keyword "not" in your filter:

filter notmail { not facility(mail); }

regards,
Siem

-----Oorspronkelijk bericht-----
Van: syslog-ng-bounces at lists.balabit.hu namens PAUL WILLIAMSON
Verzonden: do 21-1-2010 21:48
Aan: syslog-ng at lists.balabit.hu
Onderwerp: [syslog-ng] Log all msgs but a specific filter
 
I need to log all messages except for a specific filter.  I have the filter
defined 
and these messages are getting logged to a separate file.  However, I have
one 
"main" log file where I do all my other processing.  How can I include that 
filter in my destination so that it drops those specific messages from
getting 
logged?
 
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2831 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100121/f2a13845/attachment.bin 


More information about the syslog-ng mailing list