# Metadata \_tier value after rollover

**URL:** <https://discuss.elastic.co/t/metadata-tier-value-after-rollover/286117>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 7, 2021, 11:18am UTC](https://discuss.elastic.co/t/metadata-tier-value-after-rollover/286117 "2021-10-07T11:18:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [October 7, 2021, 11:18am UTC](https://discuss.elastic.co/t/metadata-tier-value-after-rollover/286117/1 "2021-10-07T11:18:26Z")

</div>

Hey there,  
Is there a way to change the Metadata \_tier value after that an ILM is executed?  
If an index starts with \_tier set to data\_hot and then it is moved to a warm node, can I change the Metadata automatically?  
In this way I could query only data\_hot indices

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [October 11, 2021, 3:13pm UTC](https://discuss.elastic.co/t/metadata-tier-value-after-rollover/286117/2 "2021-10-11T15:13:23Z")

</div>

You can indeed change the \_tier when it is moved to the warm node. You have a couple of options:

1. Let ILM automatically change the `_tier_preference` to `data_warm,data_hot` when it migrates to the `warm` phase in ILM.
2. Use the `allocate` action in the warm phase to change the `_tier_preference` to your desired tier when it migrates to the warm phase in ILM.

Hope that helps!

---

<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 8, 2021, 3:13pm UTC](https://discuss.elastic.co/t/metadata-tier-value-after-rollover/286117/3 "2021-11-08T15:13:43Z")

</div>

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