# Issue with multiple pipelines of Logstash

**URL:** https://discuss.elastic.co/t/issue-with-multiple-pipelines-of-logstash/334908
**Category:** Logstash
**Created:** [June 1, 2023, 6:58am UTC](https://discuss.elastic.co/t/issue-with-multiple-pipelines-of-logstash/334908 "2023-06-01T06:58:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wang\_Yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wang_yin/32/106901_2.png) [@Wang\_Yin](https://discuss.elastic.co/u/Wang_Yin)
#### Post date: [June 1, 2023, 6:58am UTC](https://discuss.elastic.co/t/issue-with-multiple-pipelines-of-logstash/334908/1 "2023-06-01T06:58:04Z")

</div>

I'm using Logstash version 8.8.0.

I have two Logstash conf files under /etc/logstash/conf.d folder, one is called "syslog\_cisco.conf", another one is called "test.conf" as below:

**syslog\_cisco.conf**

```auto
input {
  udp {
       port => 6000
       add_field => { "dst_port" => "6000" }
 }
}

output {
  if [dst_port] == "6000" {
  elasticsearch {
    hosts => [" ***************", "***********",]
    user => " *******"
    password => " **********"
    index => " **********"
  }
}

```

**test.conf**

```auto
input {
  udp {
       port => 6001
       add_field => { "dst_port" => "6001" }
 }
}

output {
  if [dst_port] == "6001" {
  elasticsearch {
    hosts => [" ***************", "***********",]
    user => " *******"
    password => " **********"
    index => " **********"
  }
}

```

I want to run these two conf files together.

I did some research and found [Introducing Multiple Pipelines in Logstash](https://www.elastic.co/blog/logstash-multiple-pipelines).

I followed the tutorial, created two different pipelines in **/etc/logstash/pipelines.yml** as below:

```auto
- pipeline.id: main
  path.config: "/etc/logstash/conf.d/syslog_cisco.conf"
- pipeline.id: test
  path.config: "/etc/logstash/conf.d/test.conf"

```

When I run the Logstash as a service use " **systemctl start logstash**", only the first pipeline (id: main) is running and sending the syslog to Elastic search, the second pipeline (id: test) is not working at all.

Did I miss anything here?

---

<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: [June 29, 2023, 6:58am UTC](https://discuss.elastic.co/t/issue-with-multiple-pipelines-of-logstash/334908/2 "2023-06-29T06:58:27Z")

</div>

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