Send docker container logs elsewhere (Like Splunk, etc) - but still be able to view them normally from the GUI


Recommended Posts

5 hours ago, Turnspit said:

A little bit off-topic - may I ask how you set up specific Containers to send their logs elsewhere?

 

In 'extra parameters' in the advanced view of a container config:

 

--log-driver syslog --log-opt syslog-address=tcp://192.168.1.200:9997 --log-opt tag={{.Name}}

 

You could use the 'splunk' logging driver but I didn't like the format it was giving me and preferred the traditional syslog format. So I chose that. More info here:

https://docs.docker.com/config/containers/logging/configure/

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.