# ?refresh=wait\_for in elasticsearch output

**URL:** <https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859>\
**Category:** Logstash\
**Created:** [May 15, 2020, 5:20pm UTC](https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859 "2020-05-15T17:20:02Z")\
**Posts on this page:** 4\
**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:** [May 15, 2020, 5:20pm UTC](https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859/1 "2020-05-15T17:20:03Z")

</div>

Hi,  
I can't find in the documentation if there's a way to specify the refresh parameter on a \_bulk operation, in particular I wanted to try wait\_for  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 17, 2020, 9:13am UTC](https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859/2 "2020-05-17T09:13:44Z")

</div>

I do not see the point in doing this in the Logstash Elasticsearch output. What is the problem you are trying to solve?

---

<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:** [May 29, 2020, 6:37pm UTC](https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859/3 "2020-05-29T18:37:30Z")

</div>

sorry for the late reply.  
I'm trying not to overload nodes on indexing spikes. basically do some kind of backpressure mechanism. Right now we used "sleep" in logstash but doesn't seem right.

---

<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 26, 2020, 6:37pm UTC](https://discuss.elastic.co/t/refresh-wait-for-in-elasticsearch-output/232859/4 "2020-06-26T18:37:33Z")

</div>

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