How to add the swarm cluster metadata?

Hello,
I want to collect logs from services with swarm cluster?
But I can't add a label com.docker.swarm.service.name .
Maybe there is a workaround?
Thank you!

Hi @alex16,

I'm not very familiar with swarm and there is no native support at beats, but probably you can take advantage of add_docker_metadata processor to gather the labels that should tell you the service a pod belongs to.

Have checked this out? --> https://www.elastic.co/guide/en/beats/filebeat/master/add-docker-metadata.html

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