How to configure fluentbit to send error log only

8/12/2019

I am using fluentbit to send kubernetes logs to ELK , i have set the level to error but still it sends all the log msgs to ELK , How can I configure fluentbit to send msgs that correspond to some error only.

-- Ijaz Ahmad Khan
elk
fluent-bit
kubernetes

1 Answer

8/13/2019

In official documentation for Kubernetes filter there is an example about how to make your Pod suggest a parser for your data based in an annotation: Fluent Bit Filters.

Under certain and not common conditions, a user would want to alter that hard-coded regular expression, for that purpose the option Regex_Parser can be used Fluent Bit Regex.

Useful article: Fluent Bit Article.

-- MaggieO
Source: StackOverflow