Run multiple instances of logstash

Hi,

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 --path.data /home/elk/logstash-5.5.1/data
bin/logstash -f xyz.conf --path.data /home/elk/logstash-5.5.1/data
bin/logstash -f cpu.conf --path.data /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?

Use different data directories.

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