I'm trying to get the splunk log driver working with docker-compose
I've setup an instance of splunk Enterprise with outcoldman/splunk:6.4.1 and have turned on HEC with SSL turned on.
If I simply use docker alone to start up a container, like nginx, everything goes as expected.
docker run --name nginx -d --publish 80:80 --log-driver=splunk --log-opt splunk-token={my-token} --log-opt splunk-url=https://{my-host}:8088 --log-opt splunk-insecureskipverify=true nginx
But if I try to specify the same values in docker-compose v1 or v2, it fails with
ERROR: Failed to initialize logging driver: EOF
Here's my docker-compose.yml
version: "2"
services:
nginx:
image: nginx
ports:
- 80:80
logging:
driver: splunk
options:
splunk-url: https://{my-host}:8080
splunk-token: {my-token}
splunk-insecureskipverify: 'true'
What am I missing?