Hi,
Since this would be a common problem faced by many, would like to understand how you are solving it.
We have multiple Elasticsearch setups and common code in git. This includes the logstash output plugin configuration file. Now the challenge is how to keep the ES_HOSTS info different for different setups but still have common version in git. I don't want to keep different logstash output config file. Best would have been the use of environment variables but this only supports a single ES_HOST and not a list.
So how are you achieving both the objectives, no duplicate code with the flexibility to specify different ES_HOSTS for different setups?
Thanks.