[syslog-ng]Problem with Match()

Balazs Scheidler syslog-ng@lists.balabit.hu
Sat, 19 Apr 2003 00:37:29 +0200


On Fri, Apr 18, 2003 at 05:29:11PM -0400, Dan Edwards wrote:
> When attempting to use the match(".asx") in my filter it is returning
> anything with "asx".  I only need to return those lines with the period
> before the asx, hence a file extension.  For some reason syslog-ng seems
> to ignore my specification of the . before the asx.  I have tried
> searching with ..asx and \.asx and /.asx but doesn't seem to work no
> matter what I do.  Any suggestions?

match() expects an extended regular expression. _and_ syslog-ng performs \
based escaping for strings to make it possible to include " within the
string. Therefore you need to specify:

match("\\.asx")

it will match a single dot followed by the string asx

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1