[Q&A] filter_grep exclude not filtering out? #4973
Unanswered
meditator3
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I see!
Example: <source>
@type sample
tag raw.containers
sample {"log":{"msg":"normal message","level":"info"},"stream":"stdout","time":"2025-05-21T08:32:49.702332001Z"}
</source>
<source>
@type sample
tag raw.containers
sample {"log":{"msg":"warning message","level":"warn"},"stream":"stdout","time":"2025-05-21T08:32:49.702332001Z"}
</source>
<filter raw.containers.**>
@type grep
<exclude>
key $.log.level
pattern /info/
</exclude>
</filter>
<match raw.containers.**>
@type stdout
</match> This excludes info events, and output only warn events.
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is a problem?
using:
which is supposedly supposed to filter out all info logs.
I"ve tried a bunch of others. also didn't work
also I'm unsure how fluentD is reading my messages, those that are about to be filtered out? a parsing to json, so i assume, all my raw logs are parsed as json? so it should be able to ID key-level ?
i have on my
this is example of a part of a raw log file i took from coralogix(which takes our fluentD to more readable)-
this is my
<source>
in case its needed:Describe the configuration of Fluentd###
Describe the logs of Fluentd
No response
Environment
Beta Was this translation helpful? Give feedback.
All reactions