# Set 2 shard and 1 replica for filebeat template

**URL:** https://discuss.elastic.co/t/set-2-shard-and-1-replica-for-filebeat-template/237411
**Category:** Beats
**Tags:** filebeat
**Created:** [June 17, 2020, 7:25am UTC](https://discuss.elastic.co/t/set-2-shard-and-1-replica-for-filebeat-template/237411 "2020-06-17T07:25:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Oceans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_oceans/32/51452_2.png) [@David\_Oceans](https://discuss.elastic.co/u/David_Oceans)
#### Post date: [June 17, 2020, 7:25am UTC](https://discuss.elastic.co/t/set-2-shard-and-1-replica-for-filebeat-template/237411/1 "2020-06-17T07:25:23Z")

</div>

Hi!

By default when I use the filebeat installation in my kubernetes clusters it automatically creates a 1 shard and 1 replica template for me, is it possible to change that to use 2 shards and 1 replica in filebeat configuration (yaml)?

I wouldn't mind removing the index and creating it again.

If not, how can you do it if I have the template like this and would like to change it?

Thank you very much

---

<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: [July 15, 2020, 9:25am UTC](https://discuss.elastic.co/t/set-2-shard-and-1-replica-for-filebeat-template/237411/2 "2020-07-15T09:25:29Z")

</div>

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