# There is already another instance using the configured data directory

**URL:** <https://discuss.elastic.co/t/there-is-already-another-instance-using-the-configured-data-directory/189333>\
**Category:** Logstash\
**Created:** [July 8, 2019, 11:24am UTC](https://discuss.elastic.co/t/there-is-already-another-instance-using-the-configured-data-directory/189333 "2019-07-08T11:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_hossein\_Taj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_hossein_taj/32/44550_2.png) [@Mohammad\_hossein\_Taj](https://discuss.elastic.co/u/Mohammad_hossein_Taj)\
**Post date:** [July 8, 2019, 11:24am UTC](https://discuss.elastic.co/t/there-is-already-another-instance-using-the-configured-data-directory/189333/1 "2019-07-08T11:24:00Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 5, 2019, 11:24am UTC](https://discuss.elastic.co/t/there-is-already-another-instance-using-the-configured-data-directory/189333/2 "2019-08-05T11:24:04Z")

</div>

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