You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
According to the docs I should be able to specify a configuration file that can use environment variables for the pipeline config. But when I try to set environment variables and mount this config file, it doesn't appear to work.
I see the error [2017-04-26T19:03:02,580][ERROR][logstash.agent ] Cannot load an invalid configuration {:reason=>"bad URI(is not URI?): ${ES_HOSTS}"} so the config file is copied to the correct location but the environment variables aren't replaced.
Am I missing something, or should this be working?
The text was updated successfully, but these errors were encountered:
Fixed the issue temporarily by putting ENV ES_HOSTS in the Dockerfile, but it is not the best practice. If anyone knows how to fix this by using -e in docker run -e <ES_HOSTS> command, please let me know.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to the docs I should be able to specify a configuration file that can use environment variables for the pipeline config. But when I try to set environment variables and mount this config file, it doesn't appear to work.
You can reproduce this by mounting the config file above with a command like this:
I see the error
[2017-04-26T19:03:02,580][ERROR][logstash.agent ] Cannot load an invalid configuration {:reason=>"bad URI(is not URI?): ${ES_HOSTS}"}
so the config file is copied to the correct location but the environment variables aren't replaced.Am I missing something, or should this be working?
The text was updated successfully, but these errors were encountered: