# Elasticsearch snapshot retention behavior

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management, snapshot-and-restore\
**Created:** [February 23, 2023, 5:59am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262 "2023-02-23T05:59:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_shinde/32/117294_2.png) [@Vivek\_Shinde](https://discuss.elastic.co/u/Vivek_Shinde)\
**Post date:** [February 23, 2023, 5:59am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262/1 "2023-02-23T05:59:32Z")

</div>

Lets say we create daily indices with ILM policy that delete data after 1 year. And lets say we have SLM that have retention period of 30 days. So, eventually what will be the content of snapshot after 1 year. Is it one year data or it will have only 30days data?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 23, 2023, 6:09am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262/2 "2023-02-23T06:09:13Z")

</div>

Welcome to our community! 😃

SLM will have the last 30 days of data.

---

<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:** [February 23, 2023, 6:14am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262/3 "2023-02-23T06:14:41Z")

</div>

Each snapshot created by SLM will have the full set of indices in the cluster at the time it is taken, which would be 1 years worth of data.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 23, 2023, 7:08am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262/4 "2023-02-23T07:08:14Z")

</div>

Ahh yeah good point, I missed that 😂

---

<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:** [March 23, 2023, 7:08am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-retention-behavior/326262/5 "2023-03-23T07:08:37Z")

</div>

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