19 Jan 2024 09:24 PM - last edited on 23 Jan 2024 03:04 PM by Michal_Gebacki
Hello,
is there a way to exclude word when making a log ingest rules for a host?
For example, I want to include in Storage logs that match "/health/ready" but doens't have "StatusCode: 200".
How can i write a not matching expression?
Thank you
Solved! Go to Solution.
20 Jan 2024 03:22 PM
Hi,
There are only 2 options:
For example, the value INFO results in sending only the log data having the exact INFO string, but the value *INFO* (using the wildcards) matches log data that contain the INFO string in its content.
22 Jan 2024 07:22 AM
Can I suggest to use 2 rules?
1st rule should exclude StatusCode: 200
2nd rule should include /health/ready
22 Jan 2024 01:12 PM
Thank you for the info!
We are new to Dynatrace and I am currently looking at the different possibilities of ingest rules to make sure we don't keep useless logs because we have a lot of them.
I wanted to know if that was possible to do it with one rules, but i can for sure do it with multiple rules using include and exclude.
22 Jan 2024 01:15 PM
As far as I know, it is not possible to use a single rule.
Note that rules are evaluated from top to bottom, which means that exclusion must come before inclusion.