[syslog-ng] patterndb can't match empty log strings

Kurt Yoder kyoder at gmail.com
Tue Mar 13 18:13:26 CET 2012


All,

Sometimes an empty log message is emitted, but I can't match it using pdbtool. I've tried patterns such as:

<pattern>@ANYSTRING@</pattern>

<pattern></pattern>

<pattern>
</pattern>

Nothing works. 

Other log messages from the same application are definitely being matched by the @ANYSTRING@, so I know my rule is working. So is there a way to specify an empty log string? Do I have to use a regex instead?

Thanks,

-Kurt


More information about the syslog-ng mailing list