Fail to transfer only ERROR and WARN log using fluentbit Loglevel

247 views
Skip to first unread message

DK

unread,
Jun 9, 2021, 4:02:32 AM6/9/21
to Fluent Bit
Hello Friends,

I am using Fluentbit to transfer a log from a file to another destination.

As per Fluentbit documentation, we have used the Log level setting in the service section of fluentbit.conf. it looks like below.

[SERVICE]
    Flush        1
    Daemon       Off
    Log_Level warning
    Parsers_File /etc/td-agent-bit/parsers.conf


As I expect only ERROR and WARN logs to be transmitted to the destination. 
But it's picking up all other Loglevel like INFO, DEBUG etc.

Please suggest to me why and how can I fix it.

Anurag Gupta

unread,
Jun 9, 2021, 9:54:40 AM6/9/21
to DK, Fluent Bit
Hi DK,

That log_level is related to Fluent Bit's internal logs - not the log level of data that is captured. If you need to filter down collected logs, I recommend using something like the GREP filter and excluding events you do not need

Thanks,
Anurag

--
You received this message because you are subscribed to the Google Groups "Fluent Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/265d6d47-660f-440a-a5ef-06b225ff7779n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages