1
votes

How to logs (stdout / stderr) from all container pods azure Kubernetes to the event hub. I can able to see all logs by Log Analytics workspaces >> Logs using an Azure query language.

I want to send all logs to the event hub.

Can anyone suggest on this?

1

1 Answers

1
votes

You can easily forward container logs to Event Hubs via Fluent-Bit's Kafka output.

Here is Fluent-Bit documentation for Kafka - https://docs.fluentbit.io/manual/pipeline/outputs/kafka

And here is Kafka client integration with Event Hubs - https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-for-kafka-ecosystem-overview