Starting logstash with index provided by user from UI screen

Hi,
I understand that currently the index name is supplied in the logstash.conf,i have a requirement where,where user will supply a index name through UI and i need to run logstash with the name provided.

Or
Can we supply the index name when starting logstash something like below.

bin\logstash -f logstash.conf -i "indexName"

Thanks
Ganesh

You can reference an environment variable in the configuration file (https://www.elastic.co/guide/en/logstash/current/environment-variables.html) and set that variable when you start Logstash.

Thanks for the response,the link tells about unix machine,can you give me the command for windows machine?

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