# A question on ILM behaviour on restored indices

**URL:** <https://discuss.elastic.co/t/a-question-on-ilm-behaviour-on-restored-indices/284593>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management, snapshot-and-restore\
**Created:** [September 20, 2021, 6:13am UTC](https://discuss.elastic.co/t/a-question-on-ilm-behaviour-on-restored-indices/284593 "2021-09-20T06:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pk.241011](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pk.241011/32/86285_2.png) [@pk.241011](https://discuss.elastic.co/u/pk.241011)\
**Post date:** [September 20, 2021, 6:13am UTC](https://discuss.elastic.co/t/a-question-on-ilm-behaviour-on-restored-indices/284593/1 "2021-09-20T06:13:05Z")

</div>

Hi,

I have configured ILM policy to store the data for one month. We create indices daily and after they are a month old we put them as a snapshot in a S3 bucket.

Sometimes there is need for older logs. I can easily restore them back.

But how does ILM look at these restored indices? Does it know that they are restored (I restore them back as they are, even the name is same as original) and **hence should not be backed up** after a month?

If so then it will save me the hassle of removing the index once we are done with the investigations.

Restoring it as a differently named index is not an option since many of our users have searches saved on the index pattern name.

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [October 7, 2021, 11:49am UTC](https://discuss.elastic.co/t/a-question-on-ilm-behaviour-on-restored-indices/284593/2 "2021-10-07T11:49:01Z")

</div>

Hi,

It will restore the index as it was on the last time it was snapshotted. Meaning this includes the ILM.

This means when you restore it without modifications the next run of ILM (every 10 minutes) will see the index, recognize it as older as 30 days, and remove it.

---

<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:** [November 4, 2021, 11:49am UTC](https://discuss.elastic.co/t/a-question-on-ilm-behaviour-on-restored-indices/284593/3 "2021-11-04T11:49:06Z")

</div>

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