Cannot start logstash in command line

I got "Logstash could not be started because there is already another instance using the configured data directory"
"systemctl status logstash" shows "Active: failed".
Why I still got this message?

Here is the message

[root@elk centos]# /usr/share/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }'
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
[2020-06-12T01:45:22,503][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-06-12T01:45:22,527][FATAL][logstash.runner          ] Logstash could not be started because there is already another instance using the configured data directory.  If you wish to run multiple instances, you must change the "path.data" setting.
[2020-06-12T01:45:22,540][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

check whether Logstash is running

ps -aux |grep Logstash

You can kill previous Logstash process by pid .

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