Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including more container data in forwarded logs #483

Open
DrPyser opened this issue Jun 30, 2020 · 0 comments
Open

Including more container data in forwarded logs #483

DrPyser opened this issue Jun 30, 2020 · 0 comments

Comments

@DrPyser
Copy link

DrPyser commented Jun 30, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant