Replies: 1 comment
-
If it does not match the PARSER, you need to intercept it with a FILTER. In this case, if it does not parse, it will not have a "namespace", so we just grab anything in that field with ".".
For more examples, please read the documentation: https://docs.fluentbit.io/manual/pipeline/filters/grep That being said, if you are using Fluentbit 3 or higher, there are other ways to exclude messages, which might be better for you: metrics in processors have an action exclude. And expect filters have an action exit. You might want to look into those too. https://isitobservable.io/observability/kubernetes/exploring-fluent-bit-v3-http-2-support-new-processors-and-more |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've configured a parser using Kubernetes labels:
The parser itself looks like so:
My problem is that the target pods are producing logs in a variety of formats that do not conform with the parser, many of which I do not care for. Those logs effective skip the parser.
Is there a way for me to entirely trop those logs if they do not match the parser?
At the moment, I need to write a filter for every possible log format they produce, e.g.
which feels like a losing battle
Beta Was this translation helpful? Give feedback.
All reactions