# How to disable replicas for existing indices

**URL:** https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888
**Category:** Elasticsearch
**Created:** [April 1, 2019, 10:59pm UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888 "2019-04-01T22:59:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kotarusv](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kotarusv](https://discuss.elastic.co/u/kotarusv)
#### Post date: [April 1, 2019, 10:59pm UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888/1 "2019-04-01T22:59:06Z")

</div>

hI

we are using elastic search for logging purpose and don't want to have replicas=1 for every primary index. It is ok to have replicas=0 for our environment as logs are not critical.

how to disable replicas=0 permanently? Tried via API but in few days replicas back to 1 again

what is the right procedure to put replicas=0 for every index currentl in our cluster?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 1, 2019, 11:28pm UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888/2 "2019-04-01T23:28:37Z")

</div>

You can define this in an index template. Search for index template in the documentation.

---

<div class="post-metadata">

### Author: ![kotarusv](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kotarusv](https://discuss.elastic.co/u/kotarusv)
#### Post date: [April 2, 2019, 12:22am UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888/3 "2019-04-02T00:22:25Z")

</div>

Thanks. Reading the documentation and seems to be a good feature

---

<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: [April 30, 2019, 12:29am UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888/4 "2019-04-30T00:29:47Z")

</div>

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