Hi, I tried to follow the example provided in the filebeat docs to specify complex objects in environment variables (array of LS hosts in my case) for logstash output but filebeat exits with the following error message:
Exiting: error initializing publisher: missing field accessing 'output.logstash.hosts' (source:'filebeat.yml')
Env variable is defined in docker-compose.yml:
LS_HOSTS="logstash:5044,logstash2:5044"
filebeat.yml:
...
output.logstash:
hosts: '${LS_HOSTS}'
Is this feature exclusive for Elasticsearch output, a bug, or am I doing something wrong here?
Filebeat doesn't seems to be able to read env variable because I get the same error message when I simply put an empty string in the host field but works as expected when I hardcode the host in the config file! Also, I am doing the testing without any containerization and I run Filebeat in the same terminal session where I defined the the env variable.
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.