# How to start logstash 6.2.4 multiple instance

**URL:** https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728
**Category:** Logstash
**Created:** [July 12, 2018, 10:24am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728 "2018-07-12T10:24:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)
#### Post date: [July 12, 2018, 10:24am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/1 "2018-07-12T10:24:41Z")

</div>

Hi ,

How can i run multiple logstash configuration file on single server ? When i am running more than one configuration file i am getting error message for multiple instance running.

Thanks,  
Priti

---

<div class="post-metadata">

### Author: ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)
#### Post date: [July 12, 2018, 11:02am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/2 "2018-07-12T11:02:37Z")

</div>

Multiple pipelines or multiple instances of Logstash?

Multiple pipelines with a single instance of Logstash are configured in pipelines.yml.

Running multiple instances of Logstash is possible, but requires a bit more configuration. Each instance has to have its own config directory, startup config, data dir, log dir, etc. Also the instances cannot listen on the same ports. It is a bit more work, but is possible.

---

<div class="post-metadata">

### Author: ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)
#### Post date: [July 12, 2018, 11:45am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/3 "2018-07-12T11:45:21Z")

</div>

It means in one logstash\bin folder we can create 1 conf file and for multiple conf file we have to copy logstash folder multiple time ?

---

<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: [July 12, 2018, 2:23pm UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/4 "2018-07-12T14:23:23Z")

</div>

> It means in one logstash\bin folder we can create 1 conf file and for multiple conf file we have to copy logstash folder multiple time ?

No, you don't need to maintain multiple copies of the Logstash program files, but some directories (outlined by Robert) need to be instance-unique.

---

<div class="post-metadata">

### Author: ![Shivam\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Shivam\_Agarwal](https://discuss.elastic.co/u/Shivam_Agarwal)
#### Post date: [July 13, 2018, 9:11am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/5 "2018-07-13T09:11:27Z")

</div>

@magnusbaeck Where should these directories be placed in the Logstash folder? How will an instance point itself to these directories?

---

<div class="post-metadata">

### Author: ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)
#### Post date: [July 13, 2018, 10:19am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/6 "2018-07-13T10:19:24Z")

</div>

It is really simple...

1. Setup Logstash normally.
2. Make copies of all the configuration parts and paths necessary for Logstash to run. (/etc/logstash, /var/lib/logstash, /var/log/logstash, /etc/systemd/system/logstash.service, etc)
3. Edit the copies so that all the paths are correct and each instance uses its own port numbers
4. Start each instance

This is just normal Linux admin stuff.

---

<div class="post-metadata">

### Author: ![Shivam\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Shivam\_Agarwal](https://discuss.elastic.co/u/Shivam_Agarwal)
#### Post date: [July 25, 2018, 11:40am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/7 "2018-07-25T11:40:52Z")

</div>

Hi @rcowart,  
Sorry its still unclear to me as I am new to ELK stack. Can you please explain it in simple terms? I mean which folders to copy and how each folder will point to separate instance. Also, are the steps different for windows and linux?

---

<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 22, 2018, 11:41am UTC](https://discuss.elastic.co/t/how-to-start-logstash-6-2-4-multiple-instance/139728/8 "2018-08-22T11:41:03Z")

</div>

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