# Logstash pipeline workers and imap input plugin

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-workers-and-imap-input-plugin/241534>\
**Category:** Logstash\
**Created:** [July 16, 2020, 7:06pm UTC](https://discuss.elastic.co/t/logstash-pipeline-workers-and-imap-input-plugin/241534 "2020-07-16T19:06:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diptee](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@Diptee](https://discuss.elastic.co/u/Diptee)\
**Post date:** [July 16, 2020, 7:06pm UTC](https://discuss.elastic.co/t/logstash-pipeline-workers-and-imap-input-plugin/241534/1 "2020-07-16T19:06:32Z")

</div>

Hi,  
We have configured logstash(using default pipeline configuration). We have just one pipeline running.  
When I start logstash I see it has 4 pipeline workers and batch size of 125. I am using IMAP input plugin to process emails from server.

I see that all 4 workers establish connection with IMAP.

I want to know if all workers connect to IMAP endpoint, do all workers operate parallel or just 1 worker communicates?

Thanks in advance for your help.

Thanks

---

<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, 2020, 7:20pm UTC](https://discuss.elastic.co/t/logstash-pipeline-workers-and-imap-input-plugin/241534/2 "2020-07-16T19:20:34Z")

</div>

The worker threads do not connect to IMAP. An input thread connects to IMAP and dispatches events to a queue that the worker threads read from in parallel. The execution model is described [here](https://www.elastic.co/guide/en/logstash/current/execution-model.html).

---

<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:** [August 13, 2020, 7:20pm UTC](https://discuss.elastic.co/t/logstash-pipeline-workers-and-imap-input-plugin/241534/3 "2020-08-13T19:20:48Z")

</div>

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