docker icon indicating copy to clipboard operation
docker copied to clipboard

Setting docker_container's log_driver property to splunk doesn't have any effect

Open talcloudshare opened this issue 8 years ago • 1 comments

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

talcloudshare avatar Mar 28 '17 11:03 talcloudshare

This does look like a bug, but we do need to do more investigation. Thanks for reporting.

iennae avatar Mar 31 '17 19:03 iennae