Reputation: 195
What is the exact use of bucket size in Kibana ?
[esaggs] > Request to Elasticsearch failed: {"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
I am getting this error, I am dealing with 10000+ documents, do I need to expand the bucket size ? Currently I am using the bucket size as default.
Upvotes: 1
Views: 2356
Reputation: 16192
As mentioned in the ES official documentation,
search.max_buckets (Dynamic, integer) Maximum number of aggregation buckets allowed in a single response. Defaults to 10000.
Requests that attempt to return more than this limit will return an error.
max_buckets
setting is available at the cluster level settings, you can change it using the below command (but it may adversely affect your cluster)
PUT _cluster/settings
{
"transient": {
"search.max_buckets": 20000
}
}
Refer to this discuss post, to know more about this.
Upvotes: 1