splunk / docker-logging-plugin

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

Closed stale-mate closed 1 year ago

stale-mate commented 1 year ago

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:

stale-mate commented 1 year ago

sorry this was for docker logging driver