# Question about pipelines.workers

**URL:** <https://discuss.elastic.co/t/question-about-pipelines-workers/297759>\
**Category:** Logstash\
**Created:** [February 21, 2022, 1:14pm UTC](https://discuss.elastic.co/t/question-about-pipelines-workers/297759 "2022-02-21T13:14:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ioxxy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioxxy/32/109760_2.png) [@Ioxxy](https://discuss.elastic.co/u/Ioxxy)\
**Post date:** [February 21, 2022, 1:14pm UTC](https://discuss.elastic.co/t/question-about-pipelines-workers/297759/1 "2022-02-21T13:14:14Z")

</div>

Hello,

I'm wondering, when a pipeline.workers is define either in logstash.yml and in pipelines.yml, which configuration is applied ?

I found out this setting was different in those 2 files.  
My guess would be that the pipelines.yml overrides the pipeline.workers setting of logstash.yml but I'm not sure at all.

Thanks in advance.

---

<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:** [February 21, 2022, 1:19pm UTC](https://discuss.elastic.co/t/question-about-pipelines-workers/297759/2 "2022-02-21T13:19:57Z")

</div>

The value of `pipelines.yml` takes precedence over the value from `logstash.yml`, the value in `logstash.yml` will be use if there is no value for a setting in `pipelines.yml`, this is in the [documentation](https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html#multiple-pipelines)

> The value of a setting that is not explicitly set in the `pipelines.yml` file will fall back to the default specified in the `logstash.yml` [settings file](https://www.elastic.co/guide/en/logstash/current/logstash-settings-file.html).

So, if you set `pipeline.workers` in both, the value from `pipelines.yml` will be used, if you have multiple pipelines and one of them does not have the `pipeline.workers` setting, the `logstash.yml` value will be used.

---

<div class="post-metadata">

**Author:** ![Ioxxy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioxxy/32/109760_2.png) [@Ioxxy](https://discuss.elastic.co/u/Ioxxy)\
**Post date:** [February 21, 2022, 1:22pm UTC](https://discuss.elastic.co/t/question-about-pipelines-workers/297759/3 "2022-02-21T13:22:06Z")

</div>

Thank you very much for your clear and fast answer !

---

<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 21, 2022, 1:22pm UTC](https://discuss.elastic.co/t/question-about-pipelines-workers/297759/4 "2022-03-21T13:22:25Z")

</div>

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