Splunk Connect for Docker is a Docker logging plugin that allows docker containers to send their logs directly to Splunk Enterprise or a Splunk Cloud deployment.
Apache License 2.0
63
stars
25
forks
source link
Multiple labels in Splunk logging driver's "log-opts" #74
What happened:
unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character ',' after object key
What you expected to happen:
As per documentation: https://docs.docker.com/config/containers/logging/splunk/
labels: "Comma-separated list of keys of labels, which should be included in message, if these labels are specified for container."
How to reproduce it (as minimally and precisely as possible):
{ "log-driver": "splunk", "log-opts": { "splunk-format": "json", "labels": "Label1", "Label2" } }
Anything else we need to know?: Tried array type structure as well. We need to have multiple (different) labels for containers.
Environment:
docker version
): 20.10.17cat /etc/os-release
): AWS LInux 4.14.301-224.520.amzn2.x86_64