Skip to content

Dead Letter Queue Chunks are deleted on Fluent Bit restart #11387

@optimistichare9

Description

@optimistichare9

Bug Report

Describe the bug
The .flb chunks created to the DLQ rejected folder are deleted when Fluent Bit is restarted.

To Reproduce

  • Intentionally cause chunks to fail by using bad output configs so that chunks are sent to the rejected folder.
  • Restart Fluent Bit
  • I can see this in the output and the files are deleted
[error] [storage backlog] could not retrieve chunk tag from rejected/iis.log_0_opensearch.0_000001FED68F1500.flb, removing it from the queue

Expected behavior
The chunks should be replayed to avoid data loss.

Your Environment

  • Version used: fluent-bit-4.2.2-win64
  • Configuration:
[SERVICE]
    Flush        1
    Daemon       Off
    Log_Level    trace
    Parsers_File ..\parsers.conf
    storage.path **\buffer\
    storage.keep.rejected on
    storage.rejected.path rejected

[INPUT]
    Name              tail
    Path              ***\*.log
    Tag               iis.log
    Parser            iis-parser
    Path_Key          LogFile
    storage.type  filesystem

[OUTPUT]
    Name opensearch
    Match iis.log
    Host ***.amazonaws.com
    Port 443
    AWS_Auth On
    AWS_Region ca-central-1
    Index test-iis-logs
    tls On
    Suppress_Type_Name On
    Retry_Limit 2
  • Operating System and version: Windows 11 24H2

Additional context
Trying to simulate a scenario where the output becomes unavailable - I want to use the DLQ to preserve failed chunks so they can be replayed later after the output is fixed.

I have also run https://github.com/chronosphereio/calyptia-chunk-inspector and the chunks seem OK.

go run . check -file /calyptia-chunk-inspector-main/iis.log_0_opensearch.0_000001AEFDAB01C0.flb
Filename /calyptia-chunk-inspector-main/iis.log_0_opensearch.0_000001AEFDAB01C0.flb OK

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions