You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to achieve something like this using the filter processor for logs in the otel collector config
Exclude all logs having attributes[sample_key] = prefix.* (regex)
BUT
don't exclude logs having attributes[sample_key] = prefix_suffix (strict)
If I understand the filter processor correctly, only the logs which survive all the applied filters are actually pushed ahead in the pipeline.
So one method is to have seperate exclude filters for all attributes[sample_key] = prefix.*, but it is too tedious
Since we are using re2 for regex, negative lookahead is not supported, so I cannot express "attributes[sample_key] should not match prefix_suffix" as regex.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to achieve something like this using the filter processor for logs in the otel collector config
Exclude all logs having
attributes[sample_key] = prefix.*
(regex)BUT
don't exclude logs having
attributes[sample_key] = prefix_suffix
(strict)If I understand the filter processor correctly, only the logs which survive all the applied filters are actually pushed ahead in the pipeline.
So one method is to have seperate
exclude
filters for allattributes[sample_key] = prefix.*
, but it is too tediousSince we are using re2 for regex, negative lookahead is not supported, so I cannot express "
attributes[sample_key]
should not matchprefix_suffix
" as regex.How do I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions