# Issue with setting \`\_tier\_preference\` in index template

**URL:** https://discuss.elastic.co/t/issue-with-setting-tier-preference-in-index-template/353631
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [February 19, 2024, 8:02pm UTC](https://discuss.elastic.co/t/issue-with-setting-tier-preference-in-index-template/353631 "2024-02-19T20:02:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sebastian\_Veliz\_MQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_veliz_mq/32/123927_2.png) [@Sebastian\_Veliz\_MQ](https://discuss.elastic.co/u/Sebastian_Veliz_MQ)
#### Post date: [February 19, 2024, 8:02pm UTC](https://discuss.elastic.co/t/issue-with-setting-tier-preference-in-index-template/353631/1 "2024-02-19T20:02:10Z")

</div>

Hello  
We are encountering an issue while trying to set the `_tier_preference` in an index template. Despite updating the setting in the index template edit page, the preview shows that `_tier_preference` is set to `null` instead of the expected value `data_hot`.

Here is the JSON snippet we are using in the index template edit page:

```auto
{
  "index": {
    "lifecycle": {
      "name": "test-ilm"
    },
    "routing": {
      "allocation": {
        "include": {
          "_tier_preference": "data_hot"
        }
      }
    },
    "number_of_shards": "4",
    "number_of_replicas": "1"
  }
}

```

And here is an extract of the preview

```auto
{
  "settings": {
    "index": {
      "lifecycle": {
        "name": "test-ilm"
      },
      "routing": {
        "allocation": {
          "include": {
            "_tier_preference": null
          }
        }
      },
      "number_of_shards": "4",
      "number_of_replicas": "1"
    }
  },
  ...
}

```

We know the `_tier_preference` is not setting to `data_hot`, because whenever an index is created, it's tier preference is `data_content` (he default value).  
Does anyone have any insight on what could be happening?  
Extra information:

- We are using Elasticsearch 8.11.3.
- Our cluster has four nodes: two hot zones and two warm zones.

Thank you in advance,  
Sebastián

---

<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 18, 2024, 8:02pm UTC](https://discuss.elastic.co/t/issue-with-setting-tier-preference-in-index-template/353631/2 "2024-03-18T20:02:20Z")

</div>

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