# Config files

**URL:** https://discuss.elastic.co/t/config-files/286045
**Category:** Logstash
**Created:** [October 6, 2021, 2:48pm UTC](https://discuss.elastic.co/t/config-files/286045 "2021-10-06T14:48:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tractor\_boy](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@tractor\_boy](https://discuss.elastic.co/u/tractor_boy)
#### Post date: [October 6, 2021, 2:48pm UTC](https://discuss.elastic.co/t/config-files/286045/1 "2021-10-06T14:48:37Z")

</div>

I am trying to understand how to set up logstash .conf files to see what is required.

I am considering a separate .conf files for each index/type of metric being captured.

On the web it suggests that even if they are split then logstash merged them in flight being executing, therefore they are implicitly just one file?

I would expect each input to have a different output, but it would seem that to achieve this each input has to have a type set and the output would have to check that input type is this really correct?

Is there an example file anywhere that shows how to set up an environment with many inputs and many outputs?

---

<div class="post-metadata">

### Author: ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)
#### Post date: [October 6, 2021, 2:57pm UTC](https://discuss.elastic.co/t/config-files/286045/2 "2021-10-06T14:57:08Z")

</div>

Your \*.conf file can contain your inputs, filters and outputs and each \*.conf file can represent a single pipeline.

a.conf

```auto
input {whatever}
filter {}
output {output for a.conf}

```

b.conf

```auto
input {whatever}
filter {}
output {output for b.conf}

```

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 6, 2021, 3:34pm UTC](https://discuss.elastic.co/t/config-files/286045/3 "2021-10-06T15:34:44Z")

</div>

Logstash can have multiple pipelines and each one of these pipelines will be separated from each other.

But for each pipeline you can have one or more config files.

If you configure a pipeline pointing to one folder with config files, it will merge all those files when starting, but this pipeline will be separated from the others.

This is the [documentation](https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html) about multiple pipelines.

If you want an example, I wrote this small [blog post](https://web.leandrojmp.com/posts/en/2021/03/logstash-multiple-pipelines) about using multiple pipelines a couple of months ago.

---

<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: [November 3, 2021, 3:34pm UTC](https://discuss.elastic.co/t/config-files/286045/4 "2021-11-03T15:34:45Z")

</div>

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