← all projects
Work2026· Developer
Docker → Kafka log publisher
A Go sidecar that streams Docker container logs to a Kafka topic for central log aggregation.
- Go
- Kafka
- Docker
01//problem
Container logs needed to reach a central Kafka pipeline, but the broker's advertised hostnames didn't match how the sidecar reached it.
02//solution
Wrote a Go sidecar that streams Docker container logs to a Kafka topic, with a custom Dial override that resolves the hostname-advertisement mismatch.
03//result
Logs from every container reach one Kafka topic for central aggregation, despite the broker's hostname mismatch.