# Use of customized Managed ILM policies

**URL:** <https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [March 13, 2023, 8:35pm UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594 "2023-03-13T20:35:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Savva\_Morozov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/savva_morozov/32/116837_2.png) [@Savva\_Morozov](https://discuss.elastic.co/u/Savva_Morozov)\
**Post date:** [March 13, 2023, 8:35pm UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/1 "2023-03-13T20:35:33Z")

</div>

Hello! I would like to know is it safe to use customized Managed ILM policies?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f6fd775674c8df05a395508c535dd88d30b88888.png)  
And can it be that after some update of the cluster that customized Managed ILM policies will be reset to default values? I've also tried to save Managed policy as new but even this new one is marked as "Managed".  
And if I want to customize retention period for logs, is it better to just create a new policy and specify it in the index template or also create a new index template?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 13, 2023, 10:05pm UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/2 "2023-03-13T22:05:50Z")

</div>

> [@Savva\_Morozov](#):
>
> And if I want to customize retention period for logs, is it better to just create a new policy and specify it in the index template or also create a new index template?

Yes that is the preferred method.

You can clone an index template

---

<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:** [March 14, 2023, 1:25am UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/3 "2023-03-14T01:25:35Z")

</div>

> [@Savva\_Morozov](#):
>
> And if I want to customize retention period for logs, is it better to just create a new policy and specify it in the index template or also create a new index template?

Also, if you are using an integration from Elastic Agent and you want to customize an ILM, depending on the integration you will need to clone the index template for every dataset in the integration.

You will need to follow this [documentation](https://www.elastic.co/guide/en/fleet/current/data-streams-ilm-tutorial.html).

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 14, 2023, 1:35am UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/4 "2023-03-14T01:35:06Z")

</div>

> [@leandrojmp](#):
>
> You will need to follow this [documentation](https://www.elastic.co/guide/en/fleet/current/data-streams-ilm-tutorial.html).

Huh Did not know we even added that section ... looks like it came in 8.4 ..nice thanks ... TIL!

---

<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:** [March 14, 2023, 1:42am UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/5 "2023-03-14T01:42:03Z")

</div>

> [@stephenb](#):
>
> Huh Did not know we even added that section ... looks like it came in 8.4 ..nice thanks ... TIL!

I found it when I moved to 8 on 8.5 and tried to customize ILM and mappings, unfortunatelly it is still a lot of work if you need custom ILM or mappings.

I opened an [issue](https://github.com/elastic/kibana/issues/146792) proposing some changes a couple of months ago.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 14, 2023, 1:44am UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/6 "2023-03-14T01:44:19Z")

</div>

Yes There should be a wizard! That Asks a couple of questions based on either a Logs or Metrics Template to bootstrap it all !!

---

<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 11, 2023, 1:44am UTC](https://discuss.elastic.co/t/use-of-customized-managed-ilm-policies/327594/7 "2023-04-11T01:44:56Z")

</div>

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