Passing command line parameters while starting Logstash

Hello All,

Is there any was to pass command line arguments while starting logstash ?
Current what I do :

I start logstash as -> bin/logstash -f and in config file the parameters which are region specific I add as Hard coded (using add_field option)

What I want :

something like this
bin/logstash -f -region = AMER Data_center = LAX
bin/logstash -f -region = AMER Data_center = CHI
bin/logstash -f -region = EMEA Data_center = LON

Something like this.


Have you looked at the environment filter? You're not saying what you want to accomplish so it's hard to help out.