# Set up index template with 0 replicas, always creates with 1

**URL:** https://discuss.elastic.co/t/set-up-index-template-with-0-replicas-always-creates-with-1/143010
**Category:** Elasticsearch
**Created:** [August 4, 2018, 8:07am UTC](https://discuss.elastic.co/t/set-up-index-template-with-0-replicas-always-creates-with-1/143010 "2018-08-04T08:07:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kieren\_Johnstone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kieren_johnstone/32/26311_2.png) [@Kieren\_Johnstone](https://discuss.elastic.co/u/Kieren_Johnstone)
#### Post date: [August 4, 2018, 8:07am UTC](https://discuss.elastic.co/t/set-up-index-template-with-0-replicas-always-creates-with-1/143010/1 "2018-08-04T08:07:03Z")

</div>

I'm using filebeat:

```
filebeat.prospectors:
- type: log
  enabled: true
  json.keys_under_root: true
  json.overwrite_keys: true
  paths:
    - /etc/logs/*.txt
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml    
xpack.monitoring.enabled: true
name: "azure2elasticstack"
setup.template:
  name: "filebeat-rr-stats"
  pattern: "filebeat-rr-stats-*"
  settings:
    index:
      number_of_shards: 1
      number_of_replicas: 0
logging.level: info
output.elasticsearch:
  bulk_max_size: 1000
  index: "filebeat-rr-stats-%{[beat.version]}-%{+yyyy.ww}"

```

However, my indexes are created with 1 shard and 1 replica per index, not 0 as indicated. Doing a GET /\_template shows that number\_of\_replicas is 0 there.

Why is this/how can I fix, please? I don't want replicas.

---

<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: [September 1, 2018, 8:07am UTC](https://discuss.elastic.co/t/set-up-index-template-with-0-replicas-always-creates-with-1/143010/2 "2018-09-01T08:07:11Z")

</div>

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