# Rollup job or transform size of resulting indices - lifecycle?

**URL:** <https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management, rollups\
**Created:** [March 31, 2022, 2:40pm UTC](https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213 "2022-03-31T14:40:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_McGovern](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_mcgovern/32/90131_2.png) [@Matt\_McGovern](https://discuss.elastic.co/u/Matt_McGovern)\
**Post date:** [March 31, 2022, 2:40pm UTC](https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213/1 "2022-03-31T14:40:06Z")

</div>

Do Rollup jobs ever reduce in size on their own? I couldn't find a way to add the index created by a rollup job to a lifecycle policy. The rollup job never seemed to reduce in size so I turned the job off.

Need case: we have many watchers routinely query an existing index, making multiple aggregations before processing them, looking for actions to do on their results. We're trying to create a rollup job do the aggregations and have the watchers query the resulting rollup index (it will be much less watchers needed if we can do this).

Should we be using transforms instead?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 31, 2022, 11:33pm UTC](https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213/2 "2022-03-31T23:33:42Z")

</div>

> [@Matt\_McGovern](#):
>
> Do Rollup jobs ever reduce in size on their own? I couldn't find a way to add the index created by a rollup job to a lifecycle policy. The rollup job never seemed to reduce in size so I turned the job off.

You'd need to create an ILM policy for them, I don't believe they are currently, automatically created with one for you.

---

<div class="post-metadata">

**Author:** ![Matt\_McGovern](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_mcgovern/32/90131_2.png) [@Matt\_McGovern](https://discuss.elastic.co/u/Matt_McGovern)\
**Post date:** [April 1, 2022, 2:46pm UTC](https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213/3 "2022-04-01T14:46:43Z")

</div>

Elasticsearch didn't allow me to create an ILM policy for that index (I've made them for all the rest of our indices). There's something about a rollup index that doesn't permit a life cycle for some reason. This is why I was thinking maybe Elasticsearch maintained a retention on rollups internally? Maybe the latency value means something for this?

---

<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 29, 2022, 2:47pm UTC](https://discuss.elastic.co/t/rollup-job-or-transform-size-of-resulting-indices-lifecycle/301213/4 "2022-04-29T14:47:22Z")

</div>

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