# Logstash Setting up multiple config files in one pipeline

**URL:** https://discuss.elastic.co/t/logstash-setting-up-multiple-config-files-in-one-pipeline/190643
**Category:** Logstash
**Created:** [July 16, 2019, 5:28am UTC](https://discuss.elastic.co/t/logstash-setting-up-multiple-config-files-in-one-pipeline/190643 "2019-07-16T05:28:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 16, 2019, 12:37pm UTC](https://discuss.elastic.co/t/logstash-setting-up-multiple-config-files-in-one-pipeline/190643/2 "2019-07-16T12:37:00Z")

</div>

If you have multiple configuration files for a single pipeline then they are combined. Events are read from all of the outputs, sent through all of the filters, and every event is written to every output. If you want each configuration file to be self contained then either run it in its own pipeline, or use (for example)

```
add_field => { "documentType" => "typeOne" }

```

on the input and then use

```
if [documentType] == "typeOne" {
    [...]
}

```

in the filter and output sections to make them conditional.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-setting-up-multiple-config-files-in-one-pipeline/190643)._
