# Shards and replica for logs

**URL:** <https://discuss.elastic.co/t/shards-and-replica-for-logs/106332>\
**Category:** Elasticsearch\
**Created:** [November 3, 2017, 3:15pm UTC](https://discuss.elastic.co/t/shards-and-replica-for-logs/106332 "2017-11-03T15:15:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fei\_Yao](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@Fei\_Yao](https://discuss.elastic.co/u/Fei_Yao)\
**Post date:** [November 3, 2017, 3:15pm UTC](https://discuss.elastic.co/t/shards-and-replica-for-logs/106332/1 "2017-11-03T15:15:41Z")

</div>

Just curious what's the best option for ingesting static logs by balancing performance and availability. The default is 5 shards w/ 1 replica.

Since new index will be created at daily based does it make sense to have a small shards, like 3 shards with 1 replica? I wonder what is the threshold to decide the best of it. Is it the volume of the data ingestion or something else.

Thanks in advance.

---

<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:** [November 3, 2017, 3:22pm UTC](https://discuss.elastic.co/t/shards-and-replica-for-logs/106332/2 "2017-11-03T15:22:01Z")

</div>

This [blog post](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster) provides some guidance on shards and sharding and may be useful. It does however often depend on the use case, types of data and retention period.

---

<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:** [December 1, 2017, 3:22pm UTC](https://discuss.elastic.co/t/shards-and-replica-for-logs/106332/3 "2017-12-01T15:22:03Z")

</div>

Closed on December 1, 2017, 3:22pm UTC

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