Environment variable of type array isn't accepted in logstash elasticsearch output plugin


I'm trying to output to elasticsearch using logstash and specifying hosts as environment variable is not working.

I see there's any issue as per this link https://github.com/elastic/logstash/issues/6366
I'd like to know if there's an workaround

#declaring env. variable
export HOSTS='["","",""]'

Sample logstash conf file to show how hosts is declared

input {
filter {
output {
elasticsearch {

	hosts => ${HOSTS}



can someone reply on this .. thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.