We are running syslog-ng v2.1 in a multiple client-server configuration. Due to new encryption requirements, we planning to upgrade to v3.0.8 soon and use the TLS capabilities. Upon one of our test
servers, I discovered that the following filtering works just fine under syslog-ng v2.1 and blocks the messages from reaching the remote syslog-ng server:
filter M_audit { not match("Audit daemon rotating log files"); };
filter M_snmp { not match("snmpd"); };
filter M_repeat { not match("last message repeated"); };
filter M_stats { not match("Log statistics"); };
log { source(s_localhost);
filter(M_audit);
filter(M_snmp);
filter(M_repeat);
filter(M_stats);
destination(d_general); # Remote Syslog server
};
However under syslog-ng v3.0.8, these messages are getting passed over to the remote syslog server. What do I need to do to strip these messages from getting passed through? I tried using "not message" but that doesn't
seem to work.
-- Michael