[syslog-ng] Case Insensitive Match?
Evan Rempel
erempel at uvic.ca
Tue Aug 8 19:06:25 CEST 2006
Trying to keep the syntax consistent across syslog-ng items, I recommend something like
match("expr" option(nocase, exact, replace(text), global))
nocase - case insensitive match
exact - match the exact text for cases wherey you want to mtach the .*$?^ characters
replace - replace the matched text with the included text. this may have effect on successive matches
this may include back substitution from the expression.
global - match/replace all occurances of the expression.
Some of these features may be reserved for version 2.1
Evan Rempel.
Balazs Scheidler wrote:
> On Mon, 2006-08-07 at 18:10 +0100, Hari Sekhon wrote:
>> Is there a way I can do a case insensitive match in syslog-ng?
>>
>> Every place I've seen from grep to python to perl has their own way of
>> doing the case insensitive flag.
>>
>> So how do I set the case-insensitive match flag in syslog-ng?
>
> Simple answer: you can't. Longer answer: you can't currently as noone
> has ever asked this before (or at least I can't remember).
>
> Do you happen to have a suggestion how this should look like?
>
--
Evan Rempel erempel at uvic.ca
Senior Programmer Analyst 250.721.7691
Computing Services
University of Victoria
More information about the syslog-ng
mailing list