Hi,
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='["10.2.0.6","10.2.0.7","10.2.0.8"]'
Sample logstash conf file to show how hosts is declared
input {
}
filter {
}
output {
elasticsearch {
hosts => ${HOSTS}
}
}