# Setting the number of replicas in Index Creation

**URL:** https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166
**Category:** Logstash
**Created:** [April 25, 2022, 1:41pm UTC](https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166 "2022-04-25T13:41:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)
#### Post date: [April 25, 2022, 1:41pm UTC](https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166/1 "2022-04-25T13:41:05Z")

</div>

Hello everyone, when I create a new Index via Logstash they always go with 1 replica and that turns the Index yellow. So I edit it in Index Management to set replicas to 0 the Index turns green; It might be silly but I still want to know if theres a way to configure so that my Index go into kibana with replica = 0 by default.

Best regards!

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 25, 2022, 5:22pm UTC](https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166/2 "2022-04-25T17:22:34Z")

</div>

Use an index template. There is an example [here](https://discuss.elastic.co/t/how-to-change-number-of-shards-and-number-of-replica-in-elasticseatch-template/167855).

---

<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 23, 2022, 5:23pm UTC](https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166/3 "2022-05-23T17:23:22Z")

</div>

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