-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi there!
We recently discovered that the last log lines of a short-living container were not sent on shutdown.
Fluentbit with the SQS plugin are collecting the logs from a side-car container in an ECS task. When the main container exists, the SIGTERM
signal is sent to Fluentbit which makes it stop after the Grace period.
Looking at the plugin code, when FLBPluginExit()
is invoked, the pending records in SqsRecords are not sent to SQS queue. A simple status is returned but nothing else is done :
fluentBit-sqs-plugin/out_sqs.go
Line 243 in 704de47
func FLBPluginExit() int { |
Padding the logs with 10 dummy lines at the end is our current workaround. Some of those padding logs are never sent obvisouly.
Metadata
Metadata
Assignees
Labels
No labels