Can we have multiple outputs support in fluent bit #5509
-
I am running this config:
In this Host is a service cluster endpoint. But I have more than one STS of fluentd in three AZ's which are having two different svc enpoints. How can I do this efficiently?? Basically I want to forward the data from fluent-it to three different svc endpoints. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 5 replies
-
If something like this is feasible:
|
Beta Was this translation helpful? Give feedback.
-
Yes, you can send to multiple outputs of different types too. It's one of the benefits of Fluent Bit that it is vendor agnostic. You can even send subsets of data to different outputs. |
Beta Was this translation helpful? Give feedback.
-
@patrick-stephens I tried using this, but somehow logs are getting pushed to only one output worker not all of them:
Although logs are getting succeeded only for output 0:
Currently this config I am using:
Fluent-bit version: fluent/fluent-bit:1.9.3-debug |
Beta Was this translation helpful? Give feedback.
-
What are the variables set to and can you confirm they're reachable from the pod? You're running the debug image so can exec in and there's a lot of debug tools provided plus you can install more. |
Beta Was this translation helpful? Give feedback.
-
so what was the final output of this discussion and how you have been able to let fluent-bit forward the logs to different BackEnd servers endpoints |
Beta Was this translation helpful? Give feedback.
-
Could you let me know the output of this discussion |
Beta Was this translation helpful? Give feedback.
-
Any update on this issue? |
Beta Was this translation helpful? Give feedback.
-
G'day @patrick-stephens , I hope you are doing well. Looks like you've been traveling which I'm sure was fun. I was wondering the same thing about multiple outputs and was searching around and looking at issues/discussions. I suspect what would help peoples question is an example in the https://docs.fluentbit.io/manual/concepts/data-pipeline/router page showing send the same message to x2 outputs. The examples today are: [INPUT] my_cpu -> OUTPUT my_cpu Cool. So that's 1:1 mapping. [INPUT] my_cpu -> ( Forgive the poor ASCII art ) Cool. So that's 2:1 mapping. But what there is not an example of is [INPUT] my_cpu -> OUTPUT my_cpu_output1 1:3 or 1:N mapping I think you are suggesting this will "just work", but as you know, we all just want to copy and pasta ;) |
Beta Was this translation helpful? Give feedback.
-
[INPUT] my_cpu -> OUTPUT my_cpu_output1 follow example is working
|
Beta Was this translation helpful? Give feedback.
Yes, you can send to multiple outputs of different types too. It's one of the benefits of Fluent Bit that it is vendor agnostic. You can even send subsets of data to different outputs.
See https://docs.fluentbit.io/manual/concepts/data-pipeline/router