# How many shards in one node?

**URL:** <https://discuss.elastic.co/t/how-many-shards-in-one-node/110499>\
**Category:** Elasticsearch\
**Created:** [December 6, 2017, 10:43am UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499 "2017-12-06T10:43:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MLdz](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@MLdz](https://discuss.elastic.co/u/MLdz)\
**Post date:** [December 6, 2017, 10:43am UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499/1 "2017-12-06T10:43:40Z")

</div>

Hello,  
i have install the ELK Stack for apache and php logs. My logstash is connect to my elasticsearch.  
At present, logstash create a daily index for elasticsearch.

I have 600Mb of logs per day, and we want to keep the logs for 30 days ( ~18 Gb).  
The shards can't support 45Gb of data, but it is a good things to have just one shards per daily index ?

Because i dont know if the best is too create juste one index logstash with 5 shards of 3.6Gb or create a daily index with just one shards of 600Mo (it's easier to delete index to old after 30 days than data on shards ?)

Ps : i have just one node

Thkssssss

---

<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:** [December 6, 2017, 1:34pm UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499/2 "2017-12-06T13:34:37Z")

</div>

Single daily index with 1 primary shards sounds reasonable.

---

<div class="post-metadata">

**Author:** ![MLdz](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@MLdz](https://discuss.elastic.co/u/MLdz)\
**Post date:** [December 6, 2017, 2:18pm UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499/3 "2017-12-06T14:18:40Z")

</div>

Okey, but 30 shards (1 shard per dayly index) it is ok for just one node ? it's not to big for this basic architecture ?

---

<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:** [December 6, 2017, 2:21pm UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499/4 "2017-12-06T14:21:18Z")

</div>

Yes, I think that sounds reasonable, although you could also go with e.g. weekly indices. Have a look at [this blog post about shards and sharding](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster).

---

<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:** [January 3, 2018, 2:21pm UTC](https://discuss.elastic.co/t/how-many-shards-in-one-node/110499/5 "2018-01-03T14:21:20Z")

</div>

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