Command to run multiple instances of logstash in windows

I want to run multiple instances of logstash on my windows system. In elasticsearch to run multiple nodes at once I used below command.
bin/elasticsearch -Epath.data=data1 -Epath.logs=log1 -Ecluster.name=elasticsearch -Enode.name=node-1.
bin/elasticsearch -Epath.data=data2 -Epath.logs=log2 -Ecluster.name=elasticsearch -Enode.name=node-2. etc...
So by defining the different parameters I could run multiple instances of ES. Can same be done with logstash. I tried bin/logstash -f sample.conf --path.data=data1 but did not work.
Thanks in advance... :blush:

Yes. You need to specify a different --path.data for each instance.

Thank you,
I got this. First create a directory and then specify the same path in command after
--path.data.
It worked :+1::+1:

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