Hi,
I have a logstash indexing to 3 elasticsearch nodes.
The output filter is as below:
elasticsearch
{
hosts => [ "https://myHost9a.vsi.uat.dbs.com:9202", "https://myHost10a.vsi.uat.dbs.com:9202", "https://myHost11a.vsi.uat.dbs.com:9202" ]
index => "index_name_missing-%{+YYYY.MM.dd}"
timeout => 300
ssl => true
}
you can ignore the syntax and other settings. I am only concerned about the hosts setting.
In future, It may happen that I remove myHost11a.
So, If I have 3 such instances of logstash with 5 pipelines, then I have to change the output config from 3*5=15 output files.
is there any way, where I can mention some proxy or dummy names in actual config files and original host names will be there in some external file with key value pair.
Then I will change only the external file. I will remove the thir node from external file and restart logstash, OR logstash will auto reload it.
So that after restart logstash will not index to the "myHost11a".
So basically I want to know if there is possibility of externalization of the hosts setting, where instead of mentioning actual ES hosts I will give some dummy values which will be read from external txt file?
Regards,
Sunil.