# Output Batch Sizes

**URL:** <https://discuss.elastic.co/t/output-batch-sizes/317486>\
**Category:** Logstash\
**Created:** [October 26, 2022, 8:48am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486 "2022-10-26T08:48:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [October 26, 2022, 8:48am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486/1 "2022-10-26T08:48:12Z")

</div>

Hi,  
How can we see the size of the batches logstash is pushing to elasticsearch?

Thx  
D

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 26, 2022, 9:39am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486/2 "2022-10-26T09:39:40Z")

</div>

AFAIK you cannot set only for the output. You can set on a pipeline level.

```auto
pipeline.batch.size: 125
pipeline.batch.delay: 50

```

---

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [October 30, 2022, 9:07am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486/3 "2022-10-30T09:07:15Z")

</div>

That is the configured batch size within the pipeline. I'm interested in seeing the size of the batches hitting the wire.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 30, 2022, 9:39am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486/4 "2022-10-30T09:39:55Z")

</div>

If you want to see current activities, go to Kibana-\>Management-\>Stack monitoring. Before that you should configure LS for monitoring.  
On ELK 8.x you should use Metricbeat. For older versions, you can use X-pack. Add in logstash.yml.

```auto
xpack.monitoring.enabled: true
xpack.monitoring.collection.interval: 10s
xpack.monitoring.collection.pipeline.details.enabled: true
xpack.monitoring.elasticsearch.hosts: ["http://eshost:9200"]

```

And of course you can do it manually on the LS host:

```auto
http://localhost:9600/_node/stats/pipelines?pretty
http://localhost:9600/_node/stats/events?pretty

```

---

<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:** [November 27, 2022, 9:40am UTC](https://discuss.elastic.co/t/output-batch-sizes/317486/5 "2022-11-27T09:40:00Z")

</div>

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