[syslog-ng] Converting filtering from 2.1 to 3.0?

Worsham, Michael mworsham at SCIRES.COM
Mon Sep 20 23:23:28 CEST 2010


I must be doing something wrong or the syntax is really dependant on the program name now.

Orginally under the v2.1 build, the intent of the filter was to strip any incoming message going to the syslog-ng server from the data being sent from the syslog-ng client. There was no one specific program attached to the incoming data. It could come from the client's syslog-ng side via logger command, apache data, kernel, etc.

Server-side syslog-ng.conf filter section:

filter M_audit  { not match("Auditing" value("Audit daemon rotating log files") flags(ignore-case)); };
filter M_repeat { not match("Repeating" value("last message repeated") flags(ignore-case)); };
filter M_stats  { not match("Stats" value("Log statistics") flags(ignore-case)); };
On the client side, I would just do 'logger daemon' to send over the message to the syslog-ng server.

On the server side, running syslog-ng -d reveals this output:

Incoming log entry; line='<13>Sep 20 17:16:31 drupal root: daemon'
Filter rule evaluation begins; filter_rule='M_audit'
No such value known; value='Audit daemon rotating log files'
Filter node evaluation result; filter_result='match'
Filter rule evaluation result; filter_result='match', filter_rule='M_audit'
Filter rule evaluation begins; filter_rule='M_repeat'
No such value known; value='last message repeated'
Filter node evaluation result; filter_result='match'
Filter rule evaluation result; filter_result='match', filter_rule='M_repeat'
Filter rule evaluation begins; filter_rule='M_stats'
No such value known; value='Log statistics'
Filter node evaluation result; filter_result='match'
Filter rule evaluation result; filter_result='match', filter_rule='M_stats'

Server-side syslog output being seen in the data file:

Sep 20 17:16:31 drupal root: daemon



________________________________
CONFIDENTIALITY NOTICE: This email and any attachments are intended solely for the use of the named recipient(s). This email may contain confidential and/or proprietary information of Scientific Research Corporation. If you are not a named recipient, you are prohibited from reviewing, copying, using, disclosing or distributing to others the information in this email and attachments. If you believe you have received this email in error, please notify the sender immediately and permanently delete the email, any attachments, and all copies thereof from any drives or storage media and destroy any printouts of the email or attachments.

EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical data subject to U.S export restrictions under the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). Export or transfer of this technical data and/or related information to any foreign person(s) or entity(ies), either within the U.S. or outside of the U.S., may require advance export authorization by the appropriate U.S. Government agency prior to export or transfer. In addition, technical data may not be exported or transferred to certain countries or specified designated nationals identified by U.S. embargo controls without prior export authorization. By accepting this email and any attachments, all recipients confirm that they understand and will comply with all applicable ITAR, EAR and embargo compliance requirements.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100920/28c35809/attachment.htm 


More information about the syslog-ng mailing list