I am trying to use environment variables so I don't need to change my config files for every environment. So far, in my local Windows environment I was able to do it without problems. But it seems like in Linux/ubuntu there is some issue accessing environment variables.
I'm not completely sure /etc/environment is effective here, but to be sure you can access the environment of the running Logstash process via the /proc file system. Normally one modifies /etc/default/logstash to set environment variables to affect the Logstash service (but this might be different is you use systemd).
I have checked if the process has env variables in both cases
/etc/environment and with
/etc/default/logstash
But none of the options really worked, actually /etc/default/logstash is empty in my case so I guess they must be defined somewhere else.
Maybe I should install logstash in a different way? What do you recommend me?
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.