docker
docker copied to clipboard
Setting docker_container's log_driver property to splunk doesn't have any effect
Cookbook version
2.15.2
Chef-client version
12.17.44
Platform Details
Linux ubuntu-16 4.4.0-66-generic
Scenario:
I'm trying to set a container's logging driver to be Splunk, but it doesn't seem to have any effect - logging driver remains json-file
More information on Splunk logging driver - https://docs.docker.com/engine/admin/logging/splunk
Steps to Reproduce:
docker_container ... do
...
log_driver 'splunk'
log_opts [
"splunk-token=#{splunk_token}",
"splunk-url=#{splunk_host}",
"splunk-insecureskipverify=true",
"splunk-source=...",
"splunk-sourcetype=..."
]
...
end
Expected Result:
root@ubuntu-16:~# docker inspect -f '{{.HostConfig.LogConfig.Type}}' CONTAINER_ID
splunk
Actual Result:
root@ubuntu-16:~# docker inspect -f '{{.HostConfig.LogConfig.Type}}' CONTAINER_ID
json-file
This does look like a bug, but we do need to do more investigation. Thanks for reporting.