Created
August 12, 2015 10:37
-
-
Save hostmaster/e141b889d2a50b2fb7a8 to your computer and use it in GitHub Desktop.
Write a separate log file for each docker container sending syslog messages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template(name="DockerLog" type="string" string="/var/log/docker/container-%syslogtag:8:19%.log") | |
# syslog faciliyty is daemon | |
if ( $syslogfacility == 3 and $programname == "docker") then { | |
action(type="omfile" DynaFile="DockerLog") | |
stop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have been trying to achieve the same. creation of syslog files for each docker container but it is not working in my environment. are there any steps to follow?