# Logstash instance

**URL:** https://discuss.elastic.co/t/logstash-instance/158172
**Category:** Logstash
**Created:** [November 26, 2018, 12:09pm UTC](https://discuss.elastic.co/t/logstash-instance/158172 "2018-11-26T12:09:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)
#### Post date: [November 26, 2018, 12:09pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/1 "2018-11-26T12:09:50Z")

</div>

Hi,

I have some doubt in logstash instance.

1. I ran one config file "logstash -f abc.conf" my path.data is "logstash/data"
2. I tried to ran another config "logstash -f xyz.conf" it is showing error as "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"
3. I changed my path.data to "logstash/data1". Now its running fine
4. I need to change the path.data all the times?
5. I tried to run the same "logstash -f abc.conf" with some changes. But i am getting same error "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"
6. Here my question, is it necessary to change the "path.data" everytime?

Please help me with this question.

Regards,  
Sripal

---

<div class="post-metadata">

### Author: ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)
#### Post date: [November 26, 2018, 12:10pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/2 "2018-11-26T12:10:49Z")

</div>

Please let me know if i misunderstood anything.

---

<div class="post-metadata">

### Author: ![Eniqmatic](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Eniqmatic](https://discuss.elastic.co/u/Eniqmatic)
#### Post date: [November 26, 2018, 12:14pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/3 "2018-11-26T12:14:52Z")

</div>

Why do you want to run multiple instances in the first place?

---

<div class="post-metadata">

### Author: ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)
#### Post date: [November 26, 2018, 12:15pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/4 "2018-11-26T12:15:41Z")

</div>

Yes.

---

<div class="post-metadata">

### Author: ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)
#### Post date: [November 26, 2018, 12:16pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/5 "2018-11-26T12:16:48Z")

</div>

@Eniqmatic I want ot run the same instance after some changes.

---

<div class="post-metadata">

### Author: ![Eniqmatic](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Eniqmatic](https://discuss.elastic.co/u/Eniqmatic)
#### Post date: [November 26, 2018, 12:17pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/6 "2018-11-26T12:17:47Z")

</div>

What OS are you using?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 26, 2018, 12:35pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/7 "2018-11-26T12:35:34Z")

</div>

It sounds like you might be looking to [run multiple pipelines within a single Logstash instance](https://www.elastic.co/guide/en/logstash/6.5/multiple-pipelines.html).

---

<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: [December 24, 2018, 12:35pm UTC](https://discuss.elastic.co/t/logstash-instance/158172/8 "2018-12-24T12:35:40Z")

</div>

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