Support Backup Outputs
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!
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.
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.
Any updates?
Any update about this?
Any news about this?
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.