Kibana 显示太多桶异常。如何增加桶或有更好的方法来处理这个问题?

Kibana showing too many buckets exception. How to increase the buckets or is there a better way to handle this?

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

我收到此错误,我正在处理 10000 多个文档,我需要扩大存储桶大小吗? 目前我使用的是默认的桶大小。

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 设置在集群级别设置可用,您可以使用以下命令更改它(但它可能会对您的集群产生不利影响)

PUT _cluster/settings
{
  "transient": {
    "search.max_buckets": 20000
  }
}

参考这个discuss post,了解更多。