Closed ne0c0de closed 4 years ago
Hi @ne0c0de,
Thanks for submitting an issue!
Can you please tell us which version of the LogDNA Agent on which supported OS you are using?
Thanks!
Hello @smusali
Thanks for fast response.
I'm using the latest version of LogDNS where I installed it on CentOS 8 from the original repo.
I found a solution to my problem this this regex:
exclude_regex = .*(GET /health|GET / ).*
Whenever I use backslash for escaping, it doesn't match with the line. I don't know why :)
Also I want to make my regex pattern as case insensitive but i can't do it because i can't use / in begin and end so i couldn't add i at the end of pattern. how can I achieve this?
Hi
I have an log lines like this:
I'm trying to use exclude lines including
GET /health 200
and using this line in config file:But LogDNA still pushing these lines to log monitoring. When I tred to check the pattern in regex tool it seems that it's matching with that unwanted lines. I tried to use double quotes on beginning and end of the regex pattern but it didn't wotk either.
I also checked the code but couldn't find any lines that's caring this exclude filter.
Any idea what am I doing wrong?