Starting logstash with index provided by user from UI screen


(Ganesha Venkanna) #1

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


(Magnus Bäck) #2

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.


(Ganesha Venkanna) #3

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


(Magnus Bäck) #4

(system) #5

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