# \[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

**URL:** https://discuss.elastic.co/t/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/139362
**Category:** Logstash
**Created:** [July 10, 2018, 2:00pm UTC](https://discuss.elastic.co/t/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/139362 "2018-07-10T14:00:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dyl](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@dyl](https://discuss.elastic.co/u/dyl)
#### Post date: [July 10, 2018, 2:00pm UTC](https://discuss.elastic.co/t/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/139362/1 "2018-07-10T14:00:06Z")

</div>

Hello;

I try to run two pipelines together but When I launch my pipelines with the command :

`bin/logstash --path.settings /etc/logstash`

I've got this error :

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

Do you know why i've got this issue ?

My /etc/logstash/pipelines.yml file :

```
- pipeline.id: pre_traitement
  path.config: "/etc/logstash/conf.d/pre_traitrement_vega.conf"

- pipeline.id: post_traitement_ironport
  path.config: "/etc/logstash/conf.d/fusion_vega_ironport.conf"

```

My /etc/logstash/conf.d/pre\_traitrement\_vega.conf file :

```
input
{
  file
  {
    path => "/data/IFR/ELK/work/FLD_PROD_UEM/*.log"
    type => "GDAlogATrier"
    codec => multiline {
      pattern => "anepastrouver"
      negate => true
      what => "previous"
      auto_flush_interval => 1
      max_lines => 50000
      charset => "Windows-1252"
    }
    exclude => ["efluid_*.log", "exploit*.log"]
    #ignore_older => 120
    close_older => 60
  }
}

filter
{
 if [message] =~ "CODE RETOUR : 0"
 {
   drop { }
 }
 if [message] =~ "CODE RETOUR : -4"
 {
   if [message] !~ "MNOR" and [message] !~ "TECH" and [message] !~ "FTAL"
   {
     drop { }
   }
 }
 fingerprint
 {
    source => ["message"]
    target => "fingerprint_id"
    method => "MURMUR3"
 }
}

output
{
  file
  {
    codec => line
    {
      format => "%{[message]}"
    }
    path => "/data/IFR/ELK/work/FLD_PROD_UEM_TRIE/trie-%{[fingerprint_id]}.log"
  }
  stdout { codec => rubydebug }
}

```

My etc/logstash/conf.d/fusion\_vega\_ironport.conf file :

```
input
{
  beats
  {
    port => 5044
  }
}

filter
{
  #huge filter
}

output
{
  if [filetype] == "ironport"
  {
    elasticsearch
    {
      user => logstash
      password => logstash
      ssl => true
      #cacert => '/data/IFR/certificats/pelkifr1.cer'
      cacert => '/etc/elasticsearch/root-ca.pem'
      #hosts => "https://localhost:9200"
      index => "ironport"
    }
    stdout { codec => rubydebug }
  }
  else if [filetype] == "VegaProdUEM"
  {
    elasticsearch
    {
      user => logstash
      password => logstash
      ssl => true
      #cacert => '/data/IFR/certificats/pelkifr1.cer'
      cacert => '/etc/elasticsearch/root-ca.pem'
      #hosts => "https://localhost:9200"
      index => "vegaproduem"
    }
    stdout { codec => rubydebug }
  }
}

```

But when I restart my logstash service and I launch quickly my pipeline, it works...

Thx for help

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 10, 2018, 2:21pm UTC](https://discuss.elastic.co/t/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/139362/2 "2018-07-10T14:21:29Z")

</div>

Are you saying you are running it as a service and also running it using the command line?

---

<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 7, 2018, 2:21pm UTC](https://discuss.elastic.co/t/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/139362/3 "2018-08-07T14:21:37Z")

</div>

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