# .kibana index template

**URL:** https://discuss.elastic.co/t/kibana-index-template/271096
**Category:** Elasticsearch
**Created:** [April 23, 2021, 1:42pm UTC](https://discuss.elastic.co/t/kibana-index-template/271096 "2021-04-23T13:42:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bentleg1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bentleg1/32/87527_2.png) [@bentleg1](https://discuss.elastic.co/u/bentleg1)
#### Post date: [April 23, 2021, 1:42pm UTC](https://discuss.elastic.co/t/kibana-index-template/271096/1 "2021-04-23T13:42:13Z")

</div>

Hello.  
I want to add several replicas for system .kibana index.  
I have created template.

```auto
    PUT _template/kibana
    {
      "index_patterns": ".kibana*",
     "settings": {
      "number_of_replicas": "5"
    }
  }

```

After first start kibana service i see .kibana\_1 or .kibana\_2 index, but replica settings didn't assign to this indexes. Index has only 1 replica.  
Why template haven't assigned to the index?  
What interesting. Some times, after deleting all .kibana indexes and running kibana service .kibana named index created and it has needed settings. But when i reload kibana service .kibana index stay deleted and .kibana\_1 index created without right settings.

Thanks in advance for reply.

---

<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: [April 27, 2021, 1:49am UTC](https://discuss.elastic.co/t/kibana-index-template/271096/2 "2021-04-27T01:49:18Z")

</div>

Templates are only applied to new indices, not existing ones. You will need to increase the replica count of those directly.

---

<div class="post-metadata">

### Author: ![bentleg1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bentleg1/32/87527_2.png) [@bentleg1](https://discuss.elastic.co/u/bentleg1)
#### Post date: [April 27, 2021, 6:35am UTC](https://discuss.elastic.co/t/kibana-index-template/271096/3 "2021-04-27T06:35:36Z")

</div>

Hello.  
For sure i removed .kibana indexes after template creation. But new indexes created with 1 replica shard. Parameter "number\_of\_replicas" doesn't work for index .kibana\_1

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 27, 2021, 6:52am UTC](https://discuss.elastic.co/t/kibana-index-template/271096/4 "2021-04-27T06:52:57Z")

</div>

It is possible that the Kibana index uses [auto\_expand\_replicas](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/index-modules.html#dynamic-index-settings), which would override the replica count setting. You can change the auto\_expand\_replica setting to expand to `0-all` nodes or a number higher than the standard `0-1` instead of explicitly specifying the number of replicas.

---

<div class="post-metadata">

### Author: ![bentleg1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bentleg1/32/87527_2.png) [@bentleg1](https://discuss.elastic.co/u/bentleg1)
#### Post date: [April 27, 2021, 7:08am UTC](https://discuss.elastic.co/t/kibana-index-template/271096/5 "2021-04-27T07:08:55Z")

</div>

It's work. Thank you!

---

<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: [May 25, 2021, 7:09am UTC](https://discuss.elastic.co/t/kibana-index-template/271096/6 "2021-05-25T07:09:01Z")

</div>

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