# Getting search.max\_buckets Warning message in deprecation.log file

**URL:** <https://discuss.elastic.co/t/getting-search-max-buckets-warning-message-in-deprecation-log-file/134851>\
**Category:** Elasticsearch\
**Created:** [June 6, 2018, 5:58pm UTC](https://discuss.elastic.co/t/getting-search-max-buckets-warning-message-in-deprecation-log-file/134851 "2018-06-06T17:58:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshsubramaniyan](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sureshsubramaniyan](https://discuss.elastic.co/u/sureshsubramaniyan)\
**Post date:** [June 6, 2018, 5:58pm UTC](https://discuss.elastic.co/t/getting-search-max-buckets-warning-message-in-deprecation-log-file/134851/1 "2018-06-06T17:58:16Z")

</div>

while creating term aggregation in kibana , getting below error in elasticsearch deprecation.log file

```
[2018-06-06T17:40:58,684][WARN][o.e.d.s.a.MultiBucketConsumerService] This aggregation creates too many buckets (10001) and will throw an error in future versions. You should update the [search.max_buckets] cluster setting or use the [composite] aggregation to paginate all buckets in multiple requests.

```

How to update the search.max\_buckets via cluster setting API

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [June 7, 2018, 11:32am UTC](https://discuss.elastic.co/t/getting-search-max-buckets-warning-message-in-deprecation-log-file/134851/2 "2018-06-07T11:32:16Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html)

---

<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:** [July 5, 2018, 11:32am UTC](https://discuss.elastic.co/t/getting-search-max-buckets-warning-message-in-deprecation-log-file/134851/3 "2018-07-05T11:32:18Z")

</div>

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