# Multiple pipelines - logstash cannot start

**URL:** https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892
**Category:** Logstash
**Created:** [March 3, 2020, 1:19pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892 "2020-03-03T13:19:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![manosmustang](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@manosmustang](https://discuss.elastic.co/u/manosmustang)
#### Post date: [March 3, 2020, 1:19pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/1 "2020-03-03T13:19:16Z")

</div>

Hello,

I have logstash 7.6.0 and I am trying to have multiple pipelines  
the configuration is the below

```
[root@elastic1 logstash]# vi pipelines.yml            
# This file is where you define your pipelines. You can define multiple.
# For more information on multiple pipelines, see the documentation:
# https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html

#- pipeline.id: main
# path.config: "/etc/logstash/conf.d/*.conf"

  ece-logs
- pipeline.id: ecelogs
  path.config: "/etc/logstash/conf.d/01-ece1.conf"

# ip_syslogs
- pipeline.id: ipsyslogs
  path.config: "/etc/logstash/conf.d/02-syslogs.conf"

```

for the error while i am trying to start logstash check the attachments

I did try try a lot of idea from the forum but none of them is working

If i run only one pipeline (any of the two) is working properly.

Thank you

 ![error1](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7dd1d859a91c67afa7e5dc978292f89ebcc8ce4b.jpeg) ![error2](https://us1.discourse-cdn.com/elastic/original/3X/5/6/56501b1f8595ff34060be89842cf36e4415971da.jpeg)

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [March 3, 2020, 1:37pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/2 "2020-03-03T13:37:59Z")

</div>

Hi,

What is the content of the pipelines? My guess is that the pipelines have a beats input with a port number which is the same in both pipelines. If you start a single pipeline it works, when starting both pipelines you get a port number conflict.

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![manosmustang](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@manosmustang](https://discuss.elastic.co/u/manosmustang)
#### Post date: [March 3, 2020, 1:42pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/3 "2020-03-03T13:42:53Z")

</div>

Hi,

indeed, both listen at 9220

```
input {
    beats {
        port => "9220"
    }
}

```

so this is the problem? they have to listen at different ports?

Thank you

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [March 3, 2020, 1:53pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/4 "2020-03-03T13:53:59Z")

</div>

Yes, each pipeline has to have its separate port.

Alternatively, you can check if both pipelines can be merged together: If parsing is only slightly different you can use conditionals in Logstash filters and the output can contain variables to write to different indexes but this depends on the data and the usecase.

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![manosmustang](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@manosmustang](https://discuss.elastic.co/u/manosmustang)
#### Post date: [March 3, 2020, 1:56pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/5 "2020-03-03T13:56:12Z")

</div>

No, there are completely different!

thanks!!!

---

<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: [March 31, 2020, 1:56pm UTC](https://discuss.elastic.co/t/multiple-pipelines-logstash-cannot-start/221892/6 "2020-03-31T13:56:22Z")

</div>

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