[syslog-ng] patterndb single byte optional

Jean F. Mousinho jean.mousinho at ist.utl.pt
Tue Feb 15 10:34:57 CET 2011


Hello,

I was wondering if there's any way of reducing two lines of pattern,
which provide a way of matching when a optional byte is present or not,
into a single line. Example:

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.

Just asking, this would reduce my patterns to half :) but I can live
with that...

Maybe a new type of STRING, like @DSTRING:.day: @ (dirty string, with
dirty chars inside the optional argument) would fix it?


Thanks for your time.

Jean-François Mousinho







More information about the syslog-ng mailing list