# Change default shard

**URL:** https://discuss.elastic.co/t/change-default-shard/180615
**Category:** Elasticsearch
**Created:** [May 10, 2019, 7:41pm UTC](https://discuss.elastic.co/t/change-default-shard/180615 "2019-05-10T19:41:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [May 10, 2019, 7:41pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/1 "2019-05-10T19:41:14Z")

</div>

in old ELK default number of shard was 5.

I upgraded to 7.0.1 and now it is set to 1.

how do I change this to default 5?

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [May 10, 2019, 7:56pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/2 "2019-05-10T19:56:50Z")

</div>

Alright found the command and it does change everything to what I want. But I only want indice that I create to be 5 and all system indice to 1.  
That is how it was set in 6.X. why do elk have to change that.

```
PUT /_template/index_defaults 
{
  "index_patterns": "*", 
  "settings": {
    "number_of_shards": 5
  }
}
```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 10, 2019, 8:09pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/3 "2019-05-10T20:09:31Z")

</div>

Have a look at [https://www.elastic.co/blog/elasticsearch-7-0-0-released](https://www.elastic.co/blog/elasticsearch-7-0-0-released)

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [May 10, 2019, 8:31pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/4 "2019-05-10T20:31:10Z")

</div>

> [@dadoonet](#):
>
> Have a look at [https://www.elastic.co/blog/elasticsearch-7-0-0-released](https://www.elastic.co/blog/elasticsearch-7-0-0-released)

David,  
Read the post.  
I can completely understand when you have one indice per day\*shard, that is too much.

but in my case I have all of my indice by year index-YYYY and so if I have five shard it will serve me result faster isn't it vs one shard?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 10, 2019, 8:54pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/5 "2019-05-10T20:54:41Z")

</div>

Not really. One single shard if not overloaded will be faster.

---

<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: [June 7, 2019, 8:54pm UTC](https://discuss.elastic.co/t/change-default-shard/180615/6 "2019-06-07T20:54:49Z")

</div>

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