# Logstash elasticsearch input, size and schedule params

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-input-size-and-schedule-params/252203>\
**Category:** Logstash\
**Created:** [October 15, 2020, 1:19pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-size-and-schedule-params/252203 "2020-10-15T13:19:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![feichau](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@feichau](https://discuss.elastic.co/u/feichau)\
**Post date:** [October 15, 2020, 1:19pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-size-and-schedule-params/252203/1 "2020-10-15T13:19:47Z")

</div>

I want to use elasticsearch input to query documents that is still missing some data and I didn't find how to limit the amount of documents returned by elasticsearch. The size param defines the amount that is returned each time between scrolls. I tried to define size in query, but it only restrict the amount returned, like the size param, the elasticsearch plugin continues to scroll for more documents.  
I want to limit to be processed by logstash because I will schedule periodically execution ot this task and don't want to have the input still reading when it's time to run again. I didn't find in documentation what will happen if elasticsearch is still running and by the schedule param it's time to run again?

---

<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:** [November 12, 2020, 1:19pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input-size-and-schedule-params/252203/2 "2020-11-12T13:19:48Z")

</div>

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