I am trying to use an environment variable in my pipelines.yml file. It looks something like this:
- pipeline.id: test
path.config: '${LS_SETTINGS_DIR}/test.conf'
I am using Linux RedHat distribution, Logstash was installed using the TAR option, I changed the default location of the settings directory, and created an env var in the.bash_profile to reflect that.
After running Logstash 6.0.0. with the --log.level=debug option, it complains with the following message:
No config files found in path {:path=>"/home/user_account/${LS_SETTINGS_DIR}/test.conf"}
What is the correct way to set the env var in the config file? Would appreciate your help with this.
It seems to work for me. But i have installed logstash using the apt repository and all my paths are the default file paths. I am able to call system variables from within the logstash conf. Did you try using the rpm?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.