# 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:** 1
**Showing post:** 2

<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).

---

_[View the full topic](https://discuss.elastic.co/t/setting-the-number-of-replicas-in-index-creation/303166)._
