# How to limit data from source index when rollup data at first time

**URL:** <https://discuss.elastic.co/t/how-to-limit-data-from-source-index-when-rollup-data-at-first-time/314917>\
**Category:** Elasticsearch\
**Tags:** rollups\
**Created:** [September 22, 2022, 6:51am UTC](https://discuss.elastic.co/t/how-to-limit-data-from-source-index-when-rollup-data-at-first-time/314917 "2022-09-22T06:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Be-poz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/be-poz/32/111106_2.png) [@Be-poz](https://discuss.elastic.co/u/Be-poz)\
**Post date:** [September 22, 2022, 6:51am UTC](https://discuss.elastic.co/t/how-to-limit-data-from-source-index-when-rollup-data-at-first-time/314917/1 "2022-09-22T06:51:34Z")

</div>

hi, i'm now using rollup to summary my own data.

problem is that the data i'm trying to rollup is too big. it takes a lot of time to rollup and also it affects the performance of es cluster.

so i wonder if there is any configuration to set limit on the amount of data to be rolled up.  
and then i found similar topic in this forum.

> [@Limit the age of documents in a rollup job](https://discuss.elastic.co/t/limit-the-age-of-documents-in-a-rollup-job/254865):
>
> Hi Forum. Is it possible to limit the age of documents being included in a rollup? I have been experimenting a bit with rollups, and there's one thing I'm missing. When you create a new rollup job and schedule it to run e.g. once a day, it will roll up documents from the previous 24h on each run. EXCEPT for the first time it runs - because the first time it will roll up all documents currently available in the index being rolled up. For me, this had Elastic stumbling for 48 hours while doing…

sadly there is no answer to this question... ☹  
i really want to know is there any way to set the start point for data to roll up.

thanks for reading my topic 🙂

---

<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:** [October 20, 2022, 6:51am UTC](https://discuss.elastic.co/t/how-to-limit-data-from-source-index-when-rollup-data-at-first-time/314917/2 "2022-10-20T06:51:39Z")

</div>

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