# How to Improve throughput of Azure EventHub input plugin

**URL:** <https://discuss.elastic.co/t/how-to-improve-throughput-of-azure-eventhub-input-plugin/288871>\
**Category:** Logstash\
**Created:** [November 10, 2021, 9:52am UTC](https://discuss.elastic.co/t/how-to-improve-throughput-of-azure-eventhub-input-plugin/288871 "2021-11-10T09:52:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![menha](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@menha](https://discuss.elastic.co/u/menha)\
**Post date:** [November 10, 2021, 9:52am UTC](https://discuss.elastic.co/t/how-to-improve-throughput-of-azure-eventhub-input-plugin/288871/1 "2021-11-10T09:52:45Z")

</div>

Hi Experts, I am using Azure EventHub plugin as input in Logstash, but the event receiving rate is at most around 1.2k/s, it cannot be improved by any methods i tried. Currently the events being ingested to EventHub would be 1.2~1.5k, so there are log delay in our Elasticsearch system.

I tried to set the set larger value of max\_batch\_size and prefetch\_count, original it's 250(max\_batch\_size )/300 (prefetch\_count), i changed them to 1000(max\_batch\_size )/5000(prefetch\_count). nothing happens.

I also tried to scale up the Logstash VM size, but it also does not work and the CPU/JVM usage is around 30%~60%.

So i want to help for this issue.

Here is a config of input plugin:

azure\_event\_hubs {  
threads =\> 32  
max\_batch\_size =\> 1000  
prefetch\_count =\> 5000  
decorate\_events =\> false  
type =\> "test-type"  
id =\> "sample\_id"  
storage\_connection =\> "DefaultEndp..."  
event\_hub\_connections =\> ["Endpoint=..."]  
consumer\_group =\> "test\_consumer"  
initial\_position =\> "beginning"  
}

---

<div class="post-metadata">

**Author:** ![menha](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@menha](https://discuss.elastic.co/u/menha)\
**Post date:** [November 12, 2021, 1:56am UTC](https://discuss.elastic.co/t/how-to-improve-throughput-of-azure-eventhub-input-plugin/288871/2 "2021-11-12T01:56:53Z")

</div>

Anyone could help this issue?

---

<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:** [December 10, 2021, 1:57am UTC](https://discuss.elastic.co/t/how-to-improve-throughput-of-azure-eventhub-input-plugin/288871/3 "2021-12-10T01:57:47Z")

</div>

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