You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before raising a bug, I'd like to try and confirm my observations.
TL;DR: A file with existing content will only be read and shipped from the beginning, if it is updated after being discovered.
A file that just appears and never gets updated does not get log lines processed.
Situation
Running cr.fluentbit.io/fluent/fluent-bit:4.0.7 on EKS as daemonset on ec2 nodes.
Pod is created that causes a new node to be created via autoscaling (so completely fresh instance of fluent-bit.
Pod is scheduled once fluent bit is started.
Config:
----
[SERVICE]
Daemon Off
Flush 1
Log_Level debug
Parsers_File /fluent-bit/etc/parsers.conf
Parsers_File /fluent-bit/etc/conf/custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
Health_Check On
[INPUT]
Name tail
Path /var/log/containers/*.log
multiline.parser docker, cri
Tag kube.*
# Make sure to read log lines that were emitted before fluentbit was up
Read_from_Head True
# Keep track of file status across restart to prevent Read_from_Head duplicating lines on restart
DB /var/log/flb_kube_1.db
Mem_Buf_Limit 5MB
Skip_Long_Lines On
[…]
Observation
What I see is this: A service writes a log line and then does nothing. The file gets discovered by fluent-bit but since it's not updated, the existing content is not processed.
If the service is modified to repeat the line after 60s, fluent-bit receives an update notification for the file and only then processes starting from the beginning as configured with Read_from_Head.
Is this known behavior? Could this be found in the docs? Is there a purpose behind it?
I'd really appreciate any feedback on this, don't want to waste developers time if I'm completely missing the mark.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Before raising a bug, I'd like to try and confirm my observations.
TL;DR: A file with existing content will only be read and shipped from the beginning, if it is updated after being discovered.
A file that just appears and never gets updated does not get log lines processed.
Situation
Running cr.fluentbit.io/fluent/fluent-bit:4.0.7 on EKS as daemonset on ec2 nodes.
Pod is created that causes a new node to be created via autoscaling (so completely fresh instance of fluent-bit.
Pod is scheduled once fluent bit is started.
Config:
Observation
What I see is this: A service writes a log line and then does nothing. The file gets discovered by fluent-bit but since it's not updated, the existing content is not processed.
If the service is modified to repeat the line after 60s, fluent-bit receives an update notification for the file and only then processes starting from the beginning as configured with Read_from_Head.
Is this known behavior? Could this be found in the docs? Is there a purpose behind it?
I'd really appreciate any feedback on this, don't want to waste developers time if I'm completely missing the mark.
fluent-bit logs
Logs added to the file that is monitored
Beta Was this translation helpful? Give feedback.
All reactions