# Unstable indexing rate using S3 input plugin

**URL:** <https://discuss.elastic.co/t/unstable-indexing-rate-using-s3-input-plugin/272410>\
**Category:** Logstash\
**Created:** [May 7, 2021, 11:09am UTC](https://discuss.elastic.co/t/unstable-indexing-rate-using-s3-input-plugin/272410 "2021-05-07T11:09:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrochefort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hrochefort/32/88388_2.png) [@hrochefort](https://discuss.elastic.co/u/hrochefort)\
**Post date:** [May 7, 2021, 11:09am UTC](https://discuss.elastic.co/t/unstable-indexing-rate-using-s3-input-plugin/272410/1 "2021-05-07T11:09:18Z")

</div>

Hi,  
I am using logstash to ingest json files from s3 to elasticsearch and our current indexing speed does not match my needs.  
I noticed that the indexing rate dips regularly to 0. Sometimes for up to 5 minutes. And this pattern of dips mathes the network I/O metrics of the pod of logstash so my first guess would be that logstash does not download the s3 files while processing them?

 ![elasticlogstash](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f867ee59934d3ef2bdfb857fc39c1a20844f093d.png)

 ![graphanalogstash](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4db8f2cebd2133321700e7d9c90b2a3b3a83051.png)

But even so, the peak speed is not near my needs and the cpu/ram usage of logstash are far from 100% (more like around 40%).

What I have tried:

- increasing the `pipeline.workers`
- increasing the `pipeline.batch.size`
- increasing the JVM heap size

I am pretty sure that the Elastic Search is not the bottle neck here.  
If I forgot some informations I would be happy to provide them.

Thanks in advance for the help 🙂

---

<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:** [June 4, 2021, 11:09am UTC](https://discuss.elastic.co/t/unstable-indexing-rate-using-s3-input-plugin/272410/2 "2021-06-04T11:09:50Z")

</div>

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