[syslog-ng] patterndb single byte optional

Gergely Nagy algernon at balabit.hu
Thu Feb 17 15:00:32 CET 2011


On Tue, 2011-02-15 at 09:34 +0000, Jean F. Mousinho wrote:
> JAN @STRING:.day@ 2011
> JAN  @STRING:.day@ 2011
> 
> Notice that this is the case when day doesn't have the leading 0 and I
> don't want the .day to contain any space.

Completely untested, but wouldn't this work:

JAN at ESTRING:: @@ESTRING:: @@STRING:.day@ 2011

Assuming ESTRING can catch an empty string, this should work.

-- 
|8]




More information about the syslog-ng mailing list