[syslog-ng] Quick filter question
Lay, James
james.lay at wincofoods.com
Tue Nov 8 16:49:54 CET 2011
Hi Frank,
Thanks for the quick response…my last little bit is, I was under the impression that the message() directive automatically assumed the value was already in the message only, and value() wasn’t required? Am I off on this? Thanks again.
James
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Frank Collette
Sent: Tuesday, November 08, 2011 8:36 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Quick filter question
filter f_firewall {
not (
program("firewall" flags(ignore-case)) and
message("169\.254\.[0-9]+\.[0-9]+" value("MESSAGE"));
)
};
Thanks,
Frank E. Collette IV
Technical Services
Systems Administrator II
Trustmark National Bank
Office: 601-208-7517
Fax: 601-208-6105
fcollette at trustmark.com
From: "Lay, James" <james.lay at wincofoods.com>
To: <syslog-ng at lists.balabit.hu>
Date: 11/08/2011 09:14 AM
Subject: [syslog-ng] Quick filter question
Sent by: syslog-ng-bounces at lists.balabit.hu
________________________________
Hey all!
Real quick…trying to filter OUT firewall hits that have say…169.254. Will this do the trick?
filter f_firewall {
not program (firewall flags(ignore-case));
and not message("169\.254\.[0-9]+\.[0-9]+");
};
Thanks all.
James______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng <https://lists.balabit.hu/mailman/listinfo/syslog-ng>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng <http://www.balabit.com/support/documentation/?product=syslog-ng>
FAQ: http://www.balabit.com/wiki/syslog-ng-faq <http://www.balabit.com/wiki/syslog-ng-faq>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20111108/1ac0c763/attachment.htm
More information about the syslog-ng
mailing list