# How to Run Multiple conf on same machine?

**URL:** <https://discuss.elastic.co/t/how-to-run-multiple-conf-on-same-machine/154201>\
**Category:** Logstash\
**Created:** [October 26, 2018, 12:57pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-conf-on-same-machine/154201 "2018-10-26T12:57:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [October 26, 2018, 12:57pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-conf-on-same-machine/154201/1 "2018-10-26T12:57:31Z")

</div>

Hi Experts,

It seems this question has been asked multiple times like [here](https://discuss.elastic.co/t/multiple-logstash-instance-in-one-machine/96717) . I was aware that I can use a separate logstash folder all together and can run another conf . But this is really not acceptable in my case because I have to run 10 different conf fils. I do not want to create new Logstash folder every time I need to run different conf file , can't I handle this using single logstash.yml file . Doc says we can but how not clear.

Please let me know what else needs to be changed in the below logstash.yml file

```
node.name: test
path.data: /opt/ls/logstash/data
path.data: /opt/ls/logstash/data1

```

Here I am using a node name test , and it has 2 path.data . Now when I am running second logstash conf file 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.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 26, 2018, 8:09pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-conf-on-same-machine/154201/2 "2018-10-26T20:09:26Z")

</div>

You can't have two `path.data` settings in the same logstash.yml. The `path.data` setting can be overridden via a command-line argument so you can have a single logstash.yml and just invoke Logstash and pass a currently-unused data directory as an argument.

---

<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:** [November 23, 2018, 8:20pm UTC](https://discuss.elastic.co/t/how-to-run-multiple-conf-on-same-machine/154201/3 "2018-11-23T20:20:09Z")

</div>

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