Expression match problem in filters
Hello, I can't match anything with parenthesis, for use in my filters. I tried escaping, but same result. My filter looks something like: filter f_xpto { match("something") and not match("other(xyz)"); }; I get that "other(xyz)" logged anyway.. "other\(xyz\)" does not work either. Is this an issue with syslog-ng or am i missing something? I'm using syslog-ng 1.5.23. Thanks in advance
On Mon, Mar 31, 2003 at 05:51:06AM +0100, Rodrigo Borges Pereira wrote:
Hello,
I can't match anything with parenthesis, for use in my filters. I tried escaping, but same result.
My filter looks something like: filter f_xpto { match("something") and not match("other(xyz)"); }; I get that "other(xyz)" logged anyway.. "other\(xyz\)" does not work either.
Is this an issue with syslog-ng or am i missing something?
hmm.. I think you need "other\\(xyz\\" -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Here is another syslog package that some interesting features that we should consider. http://sourceforge.net/projects/syslog-sec/ Richard
participants (3)
-
Balazs Scheidler
-
Richard E. Perlotto II
-
Rodrigo Borges Pereira