# Index settings or templates changed back overnight

**URL:** <https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793>\
**Category:** Elasticsearch\
**Created:** [April 12, 2018, 10:31am UTC](https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793 "2018-04-12T10:31:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Constantin07](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@Constantin07](https://discuss.elastic.co/u/Constantin07)\
**Post date:** [April 12, 2018, 10:31am UTC](https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793/1 "2018-04-12T10:31:20Z")

</div>

Hi All,

I've tried to change the index settings (templates too) for the below special (+X-Pack) indexes from 1 primary 0 replica to 1 primary 2 replicas but overnight the settings have been changed back.

Let's say for .kibana, I would like to have at least one replica in case it gets corrupted or the node with it gets down in a cluster. In this case all users cannot use Kibana as .kibana index is unreachable.

.kibana  
.logstash  
.ml-notifications  
.ml-state  
.monitoring-es-6-  
.monitoring-logstash-6-\*  
.security-6  
.triggered\_watches  
.watcher-history-7-\*  
.watches

I know that these are special indexes.

Could someone explain if it's possible to make persistent changes to them and how?  
By changes I mean modifying number or shards & replicas.

Regards,  
Constantin

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [April 16, 2018, 10:53am UTC](https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793/2 "2018-04-16T10:53:41Z")

</div>

Utilising the support contract in place we come to:

If you look at:  
GET .kibana/\_settings  
GET .security/\_settings  
GET .monitoring-es-6-\*/\_settings

You will see dynamic index settings are in place: [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/index-modules.html#dynamic-index-settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/index-modules.html#dynamic-index-settings)  
index.auto\_expand\_replicas:  
Auto-expand the number of replicas based on the number of available nodes. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all). Defaults to false(i.e. disabled).

Essentially, depending on how many nodes you have in your cluster, these system indices will expand replicas as per the needs of redundancy.

---

<div class="post-metadata">

**Author:** ![Constantin07](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@Constantin07](https://discuss.elastic.co/u/Constantin07)\
**Post date:** [April 16, 2018, 12:42pm UTC](https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793/3 "2018-04-16T12:42:27Z")

</div>

Thanks Jymit.

---

<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 14, 2018, 12:42pm UTC](https://discuss.elastic.co/t/index-settings-or-templates-changed-back-overnight/127793/4 "2018-05-14T12:42:34Z")

</div>

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