# Logstash processing only number of events 2 times to pipeline.max\_inflight

**URL:** <https://discuss.elastic.co/t/logstash-processing-only-number-of-events-2-times-to-pipeline-max-inflight/283664>\
**Category:** Logstash\
**Created:** [September 8, 2021, 1:21pm UTC](https://discuss.elastic.co/t/logstash-processing-only-number-of-events-2-times-to-pipeline-max-inflight/283664 "2021-09-08T13:21:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amar.molaka](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@amar.molaka](https://discuss.elastic.co/u/amar.molaka)\
**Post date:** [September 8, 2021, 1:21pm UTC](https://discuss.elastic.co/t/logstash-processing-only-number-of-events-2-times-to-pipeline-max-inflight/283664/1 "2021-09-08T13:21:17Z")

</div>

My pipeline configuration as below

```auto
 - pipeline.id: staticmetrics
   queue.type: persisted
   pipeline.workers: 10
   pipeline.batch.size: 2
   pipeline.batch.delay: 1000
   path.config: "/Users/James/Desktop/metrics.conf"

```

Log says::

```auto
[staticmetrics] Starting pipeline {:pipeline_id=>"staticmetrics", "pipeline.workers"=>10, "pipeline.batch.size"=>2, "pipeline.batch.delay"=>1000, "pipeline.max_inflight"=>20, "pipeline.sources"=>["/Users/James/Desktop/metrics.conf"], :thread=>"#<Thread:0x45762870 run>"}

```

Here the input has 600 records and expected 600 events in output. However we see only 40 entries present in output.

Here we can see only 40 events processed exactly 2 times the pipeline.max\_inflight count. By changing the combination of pipeline.workers and pipeline.batch.size the outcome is same.

Any reason for this? any way we can let all incoming events processed?

---

<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:** [October 6, 2021, 1:21pm UTC](https://discuss.elastic.co/t/logstash-processing-only-number-of-events-2-times-to-pipeline-max-inflight/283664/2 "2021-10-06T13:21:48Z")

</div>

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