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

Add env variables to config.json so it can be overwritten through plugin configuration #36

Closed sharonx closed 6 years ago

sharonx commented 6 years ago

Setting env variables on the OS won't work.

Docker requires explicitly specify the env variables used by plugins through config.json https://docs.docker.com/engine/extend/config/#example-config

@jenworthington can you add following to Advanced options - Environment Variables section? To overwrite the values through environment variables, use docker plugin set <env>=<value> https://docs.docker.com/engine/reference/commandline/plugin_set/