# How to Fix Unstable Logstash Event Rate at High EPS?

**URL:** <https://discuss.elastic.co/t/how-to-fix-unstable-logstash-event-rate-at-high-eps/366707>\
**Category:** Logstash\
**Created:** [September 18, 2024, 5:08am UTC](https://discuss.elastic.co/t/how-to-fix-unstable-logstash-event-rate-at-high-eps/366707 "2024-09-18T05:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangsubo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wangsubo/32/133865_2.png) [@wangsubo](https://discuss.elastic.co/u/wangsubo)\
**Post date:** [September 18, 2024, 5:08am UTC](https://discuss.elastic.co/t/how-to-fix-unstable-logstash-event-rate-at-high-eps/366707/1 "2024-09-18T05:08:44Z")

</div>

I am using logrun.pl to send 1000 log events per second from a CSV file to Elastic-agent, which then forwards them to Logstash

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b29c52c1c4c0a19bfeed8150556ae77b815be4fb.png)

When I set logrun.pl to send fewer than 100 events per second, the Event Received Rate in Logstash is relatively stable, staying around 98-99 events per second.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e028bc775090440de7c00c6a495e1bf064145ef.png)

However, when I increase the EPS to over 100, such as 500, 1000, or 2000, the gap between the Event Received Rate in Logstash and the EPS set by logrun.pl grows larger.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/4/24325a07a2d95a135381e1ed90ee4667917162bd.png)

I have already tried adjusting the advanced YAML settings of Elastic-agent, as well as Logstash’s memory, Pipeline Batch Size, and the number of Pipeline Workers, but these changes don’t seem to significantly stabilize the Event Received Rate.

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b04005836f24b336e2b9778685109717db8b7f0d.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91c83791ee5d773f8d429e3b9856ecfd8976b158.png)

What adjustments can I make to achieve a more stable Event Received Rate?
