# How to properly config Logstash for multiple Pipelines

**URL:** <https://discuss.elastic.co/t/how-to-properly-config-logstash-for-multiple-pipelines/121894>\
**Category:** Logstash\
**Created:** [February 28, 2018, 4:37pm UTC](https://discuss.elastic.co/t/how-to-properly-config-logstash-for-multiple-pipelines/121894 "2018-02-28T16:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_nicewood](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@a\_nicewood](https://discuss.elastic.co/u/a_nicewood)\
**Post date:** [February 28, 2018, 4:37pm UTC](https://discuss.elastic.co/t/how-to-properly-config-logstash-for-multiple-pipelines/121894/1 "2018-02-28T16:37:30Z")

</div>

Hello,

im currently having an issue with creating a multiple pipelines in logstash. I can't get enough information out of the documentation to get the pipelines running.

1. Where in the logstash.yml config should i reference on the pipelines.yml file?
2. What should the property "path.config" look like when im using multiple pipelines? When going for /etc/logstash/conf.d/\*.conf it is translated as one pipeline...

right now, my pipelines.yml file is located at /etc/logstash/pipelines.yml.  
Im really looking forward for your answer

Best regards  
Alex

---

<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:** [February 28, 2018, 5:59pm UTC](https://discuss.elastic.co/t/how-to-properly-config-logstash-for-multiple-pipelines/121894/2 "2018-02-28T17:59:27Z")

</div>

You do not need to reference pipelines.yml in logstash.yml. If you do not pass it any config files (e.g. -f) then logstash looks in path.settings for pipelines.yml

To the second part, you can pass either a single file or a regexp to a pipeline. Thus you might have

```auto
- pipeline.id: foo
  path.config: "/etc/logstash/conf.misc/DoFoo.conf"
# or
- pipeline.id: bar
  path.config: "/etc/logstash/conf.bar/*.conf"

```

---

<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 28, 2018, 5:59pm UTC](https://discuss.elastic.co/t/how-to-properly-config-logstash-for-multiple-pipelines/121894/3 "2018-03-28T17:59:40Z")

</div>

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