# Index template - settings

**URL:** https://discuss.elastic.co/t/index-template-settings/349568
**Category:** Elasticsearch
**Created:** [December 18, 2023, 2:56pm UTC](https://discuss.elastic.co/t/index-template-settings/349568 "2023-12-18T14:56:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [December 18, 2023, 2:56pm UTC](https://discuss.elastic.co/t/index-template-settings/349568/1 "2023-12-18T14:56:12Z")

</div>

Hi All,

I set up ILM for a particular index pattern. After applying this when I check index settings I see the following output:

```auto
GET abc-90010-2023.12.18/_settings

```

```auto
{
  "abc-90010-2023.12.18": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": "30d-cleanup-history"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "1",
        "provided_name": "abc-90010-2023.12.18",
        "creation_date": "1702857606753",
        "number_of_replicas": "1",
        "uuid": "p30SnGHaTp62S1EABhceEA",
        "version": {
          "created": "8070099"
        }
      }
    }
  }
}

```

After doing this, now I wanted to apply some more settings on the same index pattern as follows and gave it priority 1:

```auto
PUT /_index_template/template_90010
{
  "index_patterns" : ["abc-90010-202*"],
    "priority" : 1,
    "template": {
    "settings" : {
      "highlight.max_analyzed_offset" : 2000000
    }
  }
}

```

When I run query on index setting now I see that the earlier settings for ILM for the same index pattern have disappeared/ over-written and it only shows the new settings.

```auto
{
  "abc-90010-2023.12.18": {
    "settings": {
      "index": {
        "highlight": {
          "max_analyzed_offset": "2000000"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "1",
        "provided_name": "abc-90010-2023.12.18",
        "creation_date": "1702857600899",
        "number_of_replicas": "1",
        "uuid": "OCF6tsMmR42bUEQcVeXHSw",
        "version": {
          "created": "8070099"
        }
      }
    }
  }
}

```

I need to keep both setting i.e. ILM and offset related for the same index pattern.

How can I achieve 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: [January 15, 2024, 2:56pm UTC](https://discuss.elastic.co/t/index-template-settings/349568/2 "2024-01-15T14:56:21Z")

</div>

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