Run multiple instances of logstash

(Ashvita) #1


I am new to ELK stack. I am not sure how to run multiple instances of logstash. I have 5 config files with kafka streaming various topics as input and output as elastic search. How do I stream multiple config files at same time?
I run all the config files at same time with command-
bin/logstash -f abc.conf /home/elk/logstash-5.5.1/data
bin/logstash -f xyz.conf /home/elk/logstash-5.5.1/data
bin/logstash -f cpu.conf /home/elk/logstash-5.5.1/data
But this gives me an error that logstash could not be started because there is already another instance using the configured data directory. How do I resolve this?

(Magnus B├Ąck) #2

Use different data directories.

(system) #3

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