logspout icon indicating copy to clipboard operation
logspout copied to clipboard

Including more container data in forwarded logs

Open DrPyser opened this issue 5 years ago • 0 comments
trafficstars

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 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.

Thanks!

DrPyser avatar Jun 30 '20 21:06 DrPyser