How to read logs from docker containers running in a docker swarm cluster

Hello,

I have several java applications that are running as different services in a docker swarm cluster. I would like filebeat to be able to read the logs of the containers and I can see that it has a docker input but it also require a container id which in a swarm environment it is completely dynamic. Any way to configure filebeat for this environment?

I can see that it has a docker input but it also require a container id which in a swarm environment it is completely dynamic

Autodiscover is specifically designed for this, you can use a condition based on the docker image name used to create the container
This blog (option C) may also be a great resource

Thank you I'll definetly check it out

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.