# Logstash - configuring pipeline.workers for input stage

**URL:** https://discuss.elastic.co/t/logstash-configuring-pipeline-workers-for-input-stage/258900
**Category:** Logstash
**Created:** [December 16, 2020, 5:47pm UTC](https://discuss.elastic.co/t/logstash-configuring-pipeline-workers-for-input-stage/258900 "2020-12-16T17:47:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)
#### Post date: [December 16, 2020, 5:47pm UTC](https://discuss.elastic.co/t/logstash-configuring-pipeline-workers-for-input-stage/258900/1 "2020-12-16T17:47:05Z")

</div>

It seems that `pipeline.workers` allows to configure worker threads for filter and output stage.

> **`-w, --pipeline.workers COUNT`**
> 
> Sets the number of pipeline workers to run. This option sets the number of workers that will, in parallel, execute the filter and output stages of the pipeline. If you find that events are backing up, or that the CPU is not saturated, consider increasing this number to better utilize machine processing power. The default is the number of the host’s CPU cores.

How could i configure worker threads for input stage ? Or the number of worker threads is controlled by type of input plugin?

---

<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: [December 16, 2020, 7:47pm UTC](https://discuss.elastic.co/t/logstash-configuring-pipeline-workers-for-input-stage/258900/2 "2020-12-16T19:47:47Z")

</div>

> [@nages](#):
>
> How could i configure worker threads for input stage ?

You cannot generally do so. All the inputs I am familiar with are single-threaded.

---

<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 13, 2021, 7:47pm UTC](https://discuss.elastic.co/t/logstash-configuring-pipeline-workers-for-input-stage/258900/3 "2021-01-13T19:47:50Z")

</div>

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