Docker swarm log services on graylog

Hello

I have a server with docker swarm and I need to collect the services logs.
Today it is configured like this:

On the server with docker I created the following file “/etc/docker/daemon.json”, with the following content:
{
“log-driver”: “syslog”,
“log-opts”: {
“syslog-address”: “udp: //1.1.1.1: 12201”
}
}

The docker logs are arriving in graylog, but I can not filter by service, just by the container id.

Is there another way to do this?
What do I need and exactly do "docker service log " output in graylog

Thank you

Pretty much a duplicate of Monitoring Docker Containers with Graylog Monitoring.

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