# ILM - How to configure it

**URL:** <https://discuss.elastic.co/t/ilm-how-to-configure-it/302204>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [April 12, 2022, 9:49am UTC](https://discuss.elastic.co/t/ilm-how-to-configure-it/302204 "2022-04-12T09:49:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgfeal](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgfeal](https://discuss.elastic.co/u/mgfeal)\
**Post date:** [April 12, 2022, 9:49am UTC](https://discuss.elastic.co/t/ilm-how-to-configure-it/302204/1 "2022-04-12T09:49:06Z")

</div>

Hi,

Our hot storage is almost full. In our deployment in Elastic Cloud, several Index Lifecycle Policies have been created. One of them is perfect for us:

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b81238935dfdae005a140211559523da6fe5924.png)

"30-days-default" with this settings:

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b2e2580b1969260957bb6ccb79006de028f6e6d2.png)

But now we don't exactly how to apply it. As we saw in the documentation, we need to create a new index template. These are some of the templates that our deployment had created:

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/f/e/feedc5f80d41a0ce44e183e33f0e3cab32f7f740.png)

And if we get the output for the "GET \_cat/indices" command, these are some of the outputs we get:

![imagen](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64147c3f162d6ab700a50e6bae09d8c452a35180.png)

So, What would be the next step? Create a new index template to apply to logs and metrics?

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/1/9/19172d168e3c37755206d836d059215594fdf169.png)

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/8/1/81ef1f59c2482480a8cf804a51f1cadd5c89c4e0.png)

In the "Index Settings" add the ILM policy:

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bd0f5213dfb9a4356ea43fe5f33b2ec37e647704.png)

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df0e9b84a2ccbbc1b6eacf897bc3d07ab2fa3ea4.png)

And would it already be configured?

If this were correct, would there be a way to apply it to the data that we have from the beginning in hot storage so that it is moved to warm?  
Would anything need to be done so that the new data already uses this policy?

Thanks!

---

<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:** [May 10, 2022, 9:49am UTC](https://discuss.elastic.co/t/ilm-how-to-configure-it/302204/2 "2022-05-10T09:49:34Z")

</div>

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