# Index Lifecycle Policy does not work

**URL:** <https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 4, 2023, 9:42am UTC](https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231 "2023-09-04T09:42:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonREC](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Post date:** [September 4, 2023, 9:42am UTC](https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231/1 "2023-09-04T09:42:41Z")

</div>

Hi, I am not sure if I understand the Index Lifecycle policy correctly

Currently my index's size is over 20GB

 ![indexM](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50f906a71cb14e7a2ec89942c40068444f72d743.png)

I have set the rollover to trigger as soon as the shard is greater than 15GB

 ![hot_phrase](https://us1.discourse-cdn.com/elastic/original/3X/2/0/20b292bc5793af25fcf39ec541c2dca2e8cc483c.png)

And move the index to delete pharse after 3 days from rollover

 ![delete phrase](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8040a718dc747405e26468246ecd2fa9385f70c.png)

I expect as soon as the index size reach to 15GB, another new index is created and starts indexing new doc into that new index. But now it turns out, the index which has size over 15GB still be indexing data...

Could anyone help me out?

---

<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:** [September 4, 2023, 9:45am UTC](https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231/2 "2023-09-04T09:45:25Z")

</div>

Your index has 2 shards, one primary and one replica. Given that your index size is 24.6GB, that probably means your shard size is around 12.3GB, which is below the 15GB threshold.

---

<div class="post-metadata">

**Author:** ![JasonREC](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Post date:** [September 4, 2023, 9:52am UTC](https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231/3 "2023-09-04T09:52:52Z")

</div>

@Christian_Dahlqvist That makes sense! Thank you so much!

---

<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 2, 2023, 9:53am UTC](https://discuss.elastic.co/t/index-lifecycle-policy-does-not-work/342231/4 "2023-10-02T09:53:47Z")

</div>

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