# Cluster data retention settings

**URL:** <https://discuss.elastic.co/t/cluster-data-retention-settings/354993>\
**Category:** Elasticsearch\
**Tags:** datastreams\
**Created:** [March 8, 2024, 12:55am UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993 "2024-03-08T00:55:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)\
**Post date:** [March 8, 2024, 12:55am UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993/1 "2024-03-08T00:55:31Z")

</div>

Hi,

I am migrating from ILM to using the data retention settings. The documentation states:

**Currently, it defaults to max\_age=auto,max\_primary\_shard\_size=50gb,min\_docs=1,max\_primary\_shard\_docs=200000000**

These settings are apparently found in:  
cluster.lifecycle.default.rollover

Where can I view, edit these settings?

GET \_cluster/settings does not display them.

Thanks.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 8, 2024, 10:08am UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993/2 "2024-03-08T10:08:05Z")

</div>

`GET _cluster/settings` only displays the settings you've changed. You want `GET _cluster/settings?include_defaults`.

---

<div class="post-metadata">

**Author:** ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)\
**Post date:** [March 11, 2024, 10:58pm UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993/3 "2024-03-11T22:58:51Z")

</div>

Many thanks David, that's perfect.

Another related question, as stated above, I am moving away from ILM, but we use hot, warm, cold storage tiers with ILM. Do the Elastic data retention settings have access to the different tiers, and if so, how are they configured? I have been unable to find that information in the documentation.

Thanks.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 12, 2024, 11:00am UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993/4 "2024-03-12T11:00:21Z")

</div>

I don't think data stream lifecycle supports hot/warm/cold, no. If you need that, stick with ILM.

---

<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 9, 2024, 11:00am UTC](https://discuss.elastic.co/t/cluster-data-retention-settings/354993/5 "2024-04-09T11:00:36Z")

</div>

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