I have pipeline id in pipelines.yml=> pipe-common
I want to give id as pipe-common_
So the hostname should be dynamic from the environmentla variables of OS level.
I can use ${hostname} variable in shell script. same way, can I use hostname variable in logstash.yml or pipelines.yml or logstash.conf?
I want to make the configurations so that on any host i can use same dynamic config files and no need to change everytime.
Anybody has the sampel code for that?