Filter log with single word with grep #6634
Answered
by
RicardoAAD
BlaBlaGITTE
asked this question in
Q&A
-
Hi all, for eg: I guess a regex similar to this: ^none$ [FILTER] Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
RicardoAAD
Jan 23, 2023
Replies: 1 comment 1 reply
-
Hello @BlaBlaGITTE Config example:
Log example:
Fluent bit output:
Please let us know if this example worked for you. Regards, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RicardoAAD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @BlaBlaGITTE
To exclude all records with only one word(with no blank spaces), you can use this regex ^(\w+)$.
Config example:
Log example:
Fluent bit output: