Guys<br><br>Playing around with ng 2 and I started looking at the match filter again.<br>Simple question that I cannot find an answer to anywhere on the net.<br>How do I turn off case sensitivity for the match target ?<br>
I'd like the following line to match "error' or 'ERROR' or 'Error'<br><br>filter logparse { match("error"); };<br><br>but of course it only matches 'error' since by default regex is case sensitive.
<br>Basically I'm trying to emulate 'grep -i'<br>I guess I could do this :<br><br>filter logparse { match("[Ee][Rr][Rr][Oo][Rr]"); }; but it'd be soo much simpler to turn off case sensitivity.<br>
<br>And while we're talking regex. Shouldn't the above line actually read like this :<br><br>filter logparse { match(".+error.+"); }; ?<br><br>meaning "anything followed by 'error' followed by anything"
<br>Both appear to work so I assume the first line is interpreted by syslog-ng like the second line correct ?<br><br>Help is appreciated<br><br><br>stucky<br>