# Too many buckets exception error in dashboards

**URL:** <https://discuss.elastic.co/t/too-many-buckets-exception-error-in-dashboards/273077>\
**Category:** Kibana\
**Created:** [May 15, 2021, 7:36am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-error-in-dashboards/273077 "2021-05-15T07:36:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [May 15, 2021, 7:36am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-error-in-dashboards/273077/1 "2021-05-15T07:36:34Z")

</div>

Hi all ,  
I'm trying to fix the below too many buckets exception error

```auto
{"error":{"root_cause":[{"type":"too_many_buckets_exception","reason":"Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting.","max_buckets":10000}],"type":"search_phase_execution_exception","reason":"all shards failed"

```

The have following issues:

1. IF i increase max.buckets in cluster settings from 10,000 to 30,000, then error disappears ,but dashboard loads very slowly. I want dashboard to load fast.
2. If I try to decrease aggregation buckets in kibana visualization from 1000 to 100, then error disappears but all results are not shown. I want to show all results.
3. I'm using 5 shards for the index and I cant mess with this as it is important data.
4. this error is displayed for time range of 30 days and i want to display data for 30 days.

Need help to overcome this error.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [May 17, 2021, 1:13pm UTC](https://discuss.elastic.co/t/too-many-buckets-exception-error-in-dashboards/273077/2 "2021-05-17T13:13:58Z")

</div>

Can you share the exact configuration of the visualization causing the problem? What are you trying to visualize?

---

<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 14, 2021, 1:14pm UTC](https://discuss.elastic.co/t/too-many-buckets-exception-error-in-dashboards/273077/3 "2021-06-14T13:14:42Z")

</div>

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