[syslog-ng] Solving parsing problem

Matthew Hall mhall at mhcomputing.net
Thu Sep 2 19:31:11 CEST 2010


On Thu, Sep 02, 2010 at 01:12:40PM +0000, otgovorete at gmail.com wrote:
> The parser i've made parses successfully A but not B. The problem is
> extra whitespace when the date is one digit. I am testing parsing
> with pdbtool of syslog-ng.

I have this problem pretty often myself unfortunately. If you just want 
to get it to work ASAP even if it's not the most elegant situation, just 
add @ANYSTRING::@ to the end of your parser, right after the last non 
whitespace character of the message and it will "eat up" the trailing 
chars to successfully process the string.

> Please, advice me how to proceed. Thank you.

Hope this will help you out.

> Kosta

Matthew.


More information about the syslog-ng mailing list