# Number\_of\_replicas changes for new indexes of filebeat and metricbeat

**URL:** https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483
**Category:** Beats
**Created:** [May 4, 2017, 5:31am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483 "2017-05-04T05:31:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)
#### Post date: [May 4, 2017, 5:31am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483/1 "2017-05-04T05:31:19Z")

</div>

Hi,

I set number of replicas to 0 to make all my indexes green ( I only have one machine in my cluster).  
curl -XPUT 'elasticsearch:9200/\_settings' -d '{ "index" : { "number\_of\_replicas" : 0 } }'

The next day I have new indexes of filebeat and metricbeat but they have number\_of\_replicas set to 1 and their status becomes yellow.

How can I make all new indexes have 0 replicas?

Br Mathias

---

<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: [May 4, 2017, 8:56am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483/2 "2017-05-04T08:56:42Z")

</div>

You need to edit the template for the indices so that it won't create replicas.  
However you can just ignore yellow status, given you have a single node.

---

<div class="post-metadata">

### Author: ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)
#### Post date: [May 4, 2017, 11:24am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483/3 "2017-05-04T11:24:59Z")

</div>

> [@warkolm](#):
>
> ver you can just i

Hi warkolm,

looking at metricbeat template:  
curl -XGET '[http://elasticsearch:9200/\_template/metricbeat\*?pretty](http://elasticsearch:9200/_template/metricbeat*?pretty)'

I can not see that number of replicas is set to 1.

Can you give me a hint where to look?  
(I am using version 5.3.1 of metricbeat and 5.3.0 of logstash and elasticsearch)

Br Mathias

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 9, 2017, 6:27am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483/4 "2017-05-09T06:27:13Z")

</div>

You have to adjust the value in the metricbeat template and overwrite the existing template with it. Have a look at the metricbeat.template.json file in your metricbeat directory. There you have to add the setting and then overwrite the existing mapping. Next day it should apply.

---

<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, 2017, 5:33am UTC](https://discuss.elastic.co/t/number-of-replicas-changes-for-new-indexes-of-filebeat-and-metricbeat/84483/5 "2017-05-25T05:33:27Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
