# Change number of shards on daily index

**URL:** <https://discuss.elastic.co/t/change-number-of-shards-on-daily-index/153927>\
**Category:** Elasticsearch\
**Created:** [October 25, 2018, 7:11am UTC](https://discuss.elastic.co/t/change-number-of-shards-on-daily-index/153927 "2018-10-25T07:11:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cowensel](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cowensel](https://discuss.elastic.co/u/cowensel)\
**Post date:** [October 25, 2018, 7:11am UTC](https://discuss.elastic.co/t/change-number-of-shards-on-daily-index/153927/1 "2018-10-25T07:11:40Z")

</div>

We currently have the default 5 shards per index but I have started to notice when searching in Kibana it is taking around 20 seconds to search or kibana is slow to populate filter fields.  
We have a daily index that is created. Is there a way to change the shards to 1 shard when the next index is created or do I need to do this for all?

I was hoping to change the number of shards on the next index created so I could see the improvements in the monitoring tab?

Or can anyone suggest any other kibana performance troubleshooting tips

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 25, 2018, 8:08am UTC](https://discuss.elastic.co/t/change-number-of-shards-on-daily-index/153927/2 "2018-10-25T08:08:13Z")

</div>

You can do this by creating an [index template](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/indices-templates.html) that specifies the number of shards you want to use.

---

<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:** [November 22, 2018, 8:18am UTC](https://discuss.elastic.co/t/change-number-of-shards-on-daily-index/153927/3 "2018-11-22T08:18:02Z")

</div>

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