Recommended way to maintain multiple logstash output plugin configuration

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.

If you generate and deploy your configuration files with e.g. Ansible you can easily customize the files for different environments.

Thanks Magnus. We started using Ansible to bring up all setups from scratch. Will add this as well.
Regards.

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