Bazsi -
Thank you for taking the time to look at my situation.
> Also, I can see that you tried to escape the dot, right after "10", but
> you only used a single escape, which escapes for syslog-ng, but doesn't
> embed a backslash for the regexp parser.
"10\.\d+\.\d*[0-4]\." (kiwi) -> "10\.\\d+\.\\d*[0-4]\." (syslog-ng)
I am escaping a literal "." in the IP address (I want to match on "10." specifically.)
> This reminds me to an unrelated note, that if you use single quotes in
> syslog-ng, you don't need to escape the backslash, e.g.
> match("\\.") is equivalent to match('\.')
This is great to know! Sure cleans up some of my filters. Thanks!
> Another unrelated note is that syslog-ng supports PCRE regular
> expressions if you have that compiled in, PCRE supports \d, and you can
> use it like this:
> match('10\.\d+' type(pcre));
Unfortunately, this didn't work either, so PCRE must not be compiled in on my system. However, THIS works!
'10\.[[:digit:]]+\.[[:digit:]]*[0-4]\.'
Thanks again!
Phil