fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

Support Backup Outputs

Open PettitWesley opened this issue 7 years ago • 6 comments

Is your feature request related to a problem? Please describe.

Problem: Something goes wrong and Fluent Bit is unable to send to your log destination. May be the destination goes down, or some network or other config prevents Fluent Bit from reaching it.

Proposed Solution: Specify a second output plugin as backup for another output. You'd be able to configure a timeout/threshold for when Fluent Bit switches to the backup output. (May be number of failed retries, number of errors, or something like the time since the first unsuccessful send).

Compared to other existing feature requests and open issues, I do not think this is very high priority. I'm interested in seeing if anyone else thinks this would be useful. Plus one if you agree and comment if you want to discuss how this would work!

PettitWesley avatar Oct 09 '19 06:10 PettitWesley

I feel like this is an important feature. A primary goal of Fluent Bit should be: Never loose data, and having backup output plugins would help achieve this goal.

matthewfala avatar Aug 15 '22 20:08 matthewfala

I strongly agree. As many of the companies that uses fluent-bit will want to get all their data. This is important for statistics, analysis, anomaly detection, security monitoring and so on. So loosing a tiny bit of data, might sound insignificant, but can actually have major consequences.

artheus avatar Mar 28 '23 10:03 artheus

Any updates?

Shrey29ansh avatar Feb 07 '24 09:02 Shrey29ansh

Any update about this?

rishabhToshniwal avatar May 09 '25 11:05 rishabhToshniwal

Any news about this?

vromann avatar Sep 15 '26 08:09 vromann

We're trying to taking a look on this but there's lots of obstacles and challenges to achieve this. Firstly, there's no acknowledgement mechanism the output plugins where are defined in users' pipelines. So, this feature is not able to implement straightforward. Nowadays, I sent a PR (#12393) to introduce THROTTLE mechanism for output plugins to block sending events to the outer world of Fluent Bit. This should not resolve this issue but this is surely to be the first milestone to acknowledge to find their state by their own. So, this issue could be deeper and more complex than we expected. Thanks for your understandings.

cosmo0920 avatar Sep 16 '26 08:09 cosmo0920