# Too\_many\_buckets\_exception in Elasticseach.7.0.1

**URL:** <https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080>\
**Category:** Elasticsearch\
**Created:** [April 15, 2020, 10:13am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080 "2020-04-15T10:13:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [April 15, 2020, 10:13am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080/1 "2020-04-15T10:13:11Z")

</div>

Hi,

`We came across an error where the query for Dashborad threw for Too_many_buckets_exception. We looked into couple of queries on elastic community and found that in Elasticseach 7.X the value for max_buckets is 10000 and the query is failing because it needs more buckets. If we increase the value to 15000 it works fine by the below command`  
PUT \_cluster/settings  
{  
"transient": {  
"search.max\_buckets": \<increase that number more than 10000\>  
}  
}

However, we have couple of concern that we would like to clarify:

1. Previously the limit for max\_bucket was unlimited in Elasticseach 6.X, why it is set to 10000 in Elasticseach 7.X ?
2. What the risk/impact of incresing the max\_buckets. What can be the maximum value that can be set to it?
3. Is there any way to tune max\_buckets ?  
 ![error_in_visualization](https://us1.discourse-cdn.com/elastic/original/3X/e/c/ec829f9153d75f77824e5d19f99b01574af39be9.png)

Thanks and Regards,  
Prashant

---

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [April 22, 2020, 7:26am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080/2 "2020-04-22T07:26:32Z")

</div>

any updates ?

---

<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:** [May 20, 2020, 7:26am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080/3 "2020-05-20T07:26:37Z")

</div>

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