# Sometimes index template change after node reboot

**URL:** <https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239>\
**Category:** Elasticsearch\
**Created:** [February 23, 2021, 5:41pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239 "2021-02-23T17:41:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [February 23, 2021, 5:41pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/1 "2021-02-23T17:41:46Z")

</div>

Hi everyone,

regarding to my needs i defined a index template with PUT \_template API in kibana! on that template i set index pattern and specific index rollover alias.i send my logs from filebeat to logstash,,in logstash output i set elasticsearch and to my\_alias index.my elasticsearch cluster has 3 nodes and logstash is installed on that nodes.sometime when i restart my nodes it seems that rollovered index use a different template...in another word the template change to something else..  
is there anything wrong???

```auto
PUT /_template/my_template
{
    "order" : 0,
    "index_patterns" : ["my_index*"],
    "settings" : {
        "number_of_shards" : "5",
        "number_of_replicas" : "0",
        "index.lifecycle.name": "my_policy",
        "index.lifecycle.rollover_alias": "my_alias",
        "index.mapping.total_fields.limit": 5000,
        "codec": "best_compression"
        
    },
    "mappings" : {
      "date_detection": false,                     
      "properties" : {
        "timestamp" : {
          "format": "date_time||strict_date_time",   
            "type" : "date"
        },
        "@timestamp": {
          "format": "strict_date_optional_time",
           "type": "date"
        }
      }
      
}
}

```

---

<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 25, 2021, 2:50am UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/2 "2021-02-25T02:50:45Z")

</div>

What's the output from the `_cat/templates?v` API?

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [February 25, 2021, 6:55pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/3 "2021-02-25T18:55:31Z")

</div>

could you tell me what you are looking for???because the output is list of all templates which is too many

---

<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 25, 2021, 10:34pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/4 "2021-02-25T22:34:36Z")

</div>

Anything that matches your pattern there.  
Index temples to not just change after a reboot, something has to be changing it.

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [February 26, 2021, 7:10pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/5 "2021-02-26T19:10:56Z")

</div>

Thx alot... i will check that...another question where does the template data store??

---

<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 26, 2021, 8:53pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/6 "2021-02-26T20:53:37Z")

</div>

In the cluster state.

---

<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 26, 2021, 8:53pm UTC](https://discuss.elastic.co/t/sometimes-index-template-change-after-node-reboot/265239/7 "2021-03-26T20:53:51Z")

</div>

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