# Logstash pipelines isolation

**URL:** <https://discuss.elastic.co/t/logstash-pipelines-isolation/112443>\
**Category:** Logstash\
**Created:** [December 19, 2017, 1:50pm UTC](https://discuss.elastic.co/t/logstash-pipelines-isolation/112443 "2017-12-19T13:50:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Duris](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Martin\_Duris](https://discuss.elastic.co/u/Martin_Duris)\
**Post date:** [December 19, 2017, 1:50pm UTC](https://discuss.elastic.co/t/logstash-pipelines-isolation/112443/1 "2017-12-19T13:50:35Z")

</div>

Hi guys,  
i have logstash (v6) where i am using 2 pipelines, defined like this:

```
- pipeline.id: pipe1
  path.config: "/etc/logstash/conf.d/pipelines/pipe1.conf"
  pipeline.workers: 1
- pipeline.id: pipe2
  path.config: "/etc/logstash/conf.d/pipelines/pipe2.conf"
  pipeline.workers: 1

```

And lets have config in pipe1.conf

```
input {
  syslog {
    port => 514
    type => type1
  }
}

filter {
  if [type] == "type1" { ... }
}

```

And pipe2.conf

```
input {
  syslog {
    port => 515
    type => type2
  }
}

filter {
  if [type] == "type2" { ... }
}

```

Question :

- **Do i need to do inside filter check for type** (if [type] == "type1") ?
- **Are all events, which "enters" "pipe1" through beats listening on port 514 "isolated" from filter in "pipe2"**?

Thank you very much  
Martin

---

<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:** [December 19, 2017, 3:32pm UTC](https://discuss.elastic.co/t/logstash-pipelines-isolation/112443/2 "2017-12-19T15:32:44Z")

</div>

> Do i need to do inside filter check for type (if [type] == "type1") ?

No.

> Are all events, which "enters" "pipe1" through beats listening on port 514 "isolated" from filter in "pipe2" ?

Yes.

---

<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:** [January 16, 2018, 3:32pm UTC](https://discuss.elastic.co/t/logstash-pipelines-isolation/112443/3 "2018-01-16T15:32:47Z")

</div>

Closed on January 16, 2018, 3:32pm UTC

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