There is already another instance using the configured data directory

hi
I'm trying to get logs that filebeat harvest by logstash. but when I try to run logstash with this command bin/logstash -f /etc/logstash/beatsToElasticSearchPipeline.conf --config.reload.automatic I got this:

hread.exclusive is deprecated, use Thread::Mutex
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[WARN ] 2019-07-08 12:18:14.632 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[FATAL] 2019-07-08 12:18:14.687 [LogStash::Runner] 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.
[ERROR] 2019-07-08 12:18:14.707 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

it said that another instance of logstash is running but my logstash service is disable beceuse the result of this command : systemctl status logstash is:

logstash.service - logstash
Loaded: loaded (/etc/systemd/system/logstash.service; disabled; vendor prese>
Active: inactive (dead)

this problem just solve when I reboot my PC. but if I use one time from logstash and stop it's process, It get mentioned error although I stop logstash service with systemctl stop logstash.

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