# Manually execute ILM policy

**URL:** <https://discuss.elastic.co/t/manually-execute-ilm-policy/349560>\
**Category:** Elasticsearch\
**Created:** [December 18, 2023, 1:31pm UTC](https://discuss.elastic.co/t/manually-execute-ilm-policy/349560 "2023-12-18T13:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [December 18, 2023, 1:31pm UTC](https://discuss.elastic.co/t/manually-execute-ilm-policy/349560/1 "2023-12-18T13:31:00Z")

</div>

Hey there,  
is there a way to manually execute an ILMm policy? If I modify the mapping template for example, I would like to immediately create and use a new updated index, avoiding to wait for example date threshold or size threshold.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 18, 2023, 1:44pm UTC](https://discuss.elastic.co/t/manually-execute-ilm-policy/349560/2 "2023-12-18T13:44:59Z")

</div>

If you are using rollover you may force a manual rollover using the [rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html).

This will create a new backing index and use the new mapping, but all the other phases on the ILM will happen after the specified time/size has passed.

---

<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:** [January 15, 2024, 1:45pm UTC](https://discuss.elastic.co/t/manually-execute-ilm-policy/349560/3 "2024-01-15T13:45:33Z")

</div>

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