I'm looking to use this tool, along with the logspout-fluentd plugin, to collect & forward logs from our docker swarm nodes to a central fluentd server, as an (arguably better) alternative to file-tailing and the docker fluentd log driver.
I got it to work, and I can see my container logs in my storage backend, along with the container_name and container_id fields, which is nice.
It seems to me the logspout internals have access to the full container details from the docker API.
Is there a way to configure logspout, or perhaps the fluentd adapter plugin, to include more container information in the forwarded logs, like labels, networks, image info? I'm only seeing syslog-specific configuration variables in the documentation.
Hi!
I'm looking to use this tool, along with the logspout-fluentd plugin, to collect & forward logs from our docker swarm nodes to a central fluentd server, as an (arguably better) alternative to file-tailing and the docker fluentd log driver.
I got it to work, and I can see my container logs in my storage backend, along with the
container_name
andcontainer_id
fields, which is nice. It seems to me the logspout internals have access to the full container details from the docker API. Is there a way to configure logspout, or perhaps the fluentd adapter plugin, to include more container information in the forwarded logs, like labels, networks, image info? I'm only seeing syslog-specific configuration variables in the documentation.Thanks!