# Logstash hold indexes when ES is overloaded

**URL:** <https://discuss.elastic.co/t/logstash-hold-indexes-when-es-is-overloaded/224729>\
**Category:** Logstash\
**Tags:** docker, ilm-index-lifecycle-management\
**Created:** [March 23, 2020, 8:27pm UTC](https://discuss.elastic.co/t/logstash-hold-indexes-when-es-is-overloaded/224729 "2020-03-23T20:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_Ruben\_Otero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fernando_ruben_otero/32/64932_2.png) [@Fernando\_Ruben\_Otero](https://discuss.elastic.co/u/Fernando_Ruben_Otero)\
**Post date:** [March 23, 2020, 8:27pm UTC](https://discuss.elastic.co/t/logstash-hold-indexes-when-es-is-overloaded/224729/1 "2020-03-23T20:27:02Z")

</div>

Hi all  
Our current architecture for indexing is: we have a kafka topic from which logstash reads and then indexes in elastic.  
We sometimes have peaks of indexing which is causing search issues. I would like to be able to slow down the indexing speed based on elastic search metrics, is that possible?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 23, 2020, 10:27pm UTC](https://discuss.elastic.co/t/logstash-hold-indexes-when-es-is-overloaded/224729/2 "2020-03-23T22:27:45Z")

</div>

That's really an elasticsearch question. If elasticsearch indexing slows down there will be back-pressure that will stop logstash sending it more data. It has been answered [here](https://discuss.elastic.co/t/prioritize-search-requests-over-index-requests/109201/2). Not sure if things have changed. I do not run elasticsearch.

---

<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:** [April 20, 2020, 10:27pm UTC](https://discuss.elastic.co/t/logstash-hold-indexes-when-es-is-overloaded/224729/3 "2020-04-20T22:27:53Z")

</div>

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