# How to set number\_of\_replicas at creation index at elasticsearch?

**URL:** https://discuss.elastic.co/t/how-to-set-number-of-replicas-at-creation-index-at-elasticsearch/343529
**Category:** Kibana
**Created:** [September 21, 2023, 10:42am UTC](https://discuss.elastic.co/t/how-to-set-number-of-replicas-at-creation-index-at-elasticsearch/343529 "2023-09-21T10:42:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![emoxam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emoxam/32/125661_2.png) [@emoxam](https://discuss.elastic.co/u/emoxam)
#### Post date: [September 21, 2023, 10:42am UTC](https://discuss.elastic.co/t/how-to-set-number-of-replicas-at-creation-index-at-elasticsearch/343529/1 "2023-09-21T10:42:21Z")

</div>

How to set number\_of\_replicas at creation index at elasticsearch ?  
I am using template with

> {  
> "index": {  
> "number\_of\_replicas": "0",  
> "mapping": {  
> "total\_fields": {  
> "limit": "10000"  
> }  
> },  
> "refresh\_interval": "5s"  
> }  
> }

But index setting after creation is "number\_of\_replicas": "1",

---

<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: [October 19, 2023, 10:43am UTC](https://discuss.elastic.co/t/how-to-set-number-of-replicas-at-creation-index-at-elasticsearch/343529/2 "2023-10-19T10:43:20Z")

</div>

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