# Unable to set search.max\_buckets for \_cluster/settings

**URL:** <https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015>\
**Category:** Elasticsearch\
**Created:** [September 25, 2020, 6:36pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015 "2020-09-25T18:36:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suparna\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suparna_shankar/32/75382_2.png) [@Suparna\_Shankar](https://discuss.elastic.co/u/Suparna_Shankar)\
**Post date:** [September 25, 2020, 6:36pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/1 "2020-09-25T18:36:31Z")

</div>

m trying to curl -XPUT "[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings) -H 'Content-Type: application/json'{"transient":{"search.max\_buckets": 200000}} but am getting below error please correct me if i am wrong  
C:\Users\ssuparna.TEMENOSGROUP\>curl -XPUT "[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings) -H 'Content-Type: application/json'{"transient":{"search.max\_buckets": 200000}}  
curl: (3) [globbing] nested brace in column 87

Please help me to solve this  
curl: (3) [globbing] nested brace in column 87

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [September 25, 2020, 7:19pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/2 "2020-09-25T19:19:16Z")

</div>

Try this @Suparna_Shankar

```auto
curl -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{ "transient": { "search.max_buckets": 200000 }}'

```

---

<div class="post-metadata">

**Author:** ![Suparna\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suparna_shankar/32/75382_2.png) [@Suparna\_Shankar](https://discuss.elastic.co/u/Suparna_Shankar)\
**Post date:** [September 25, 2020, 7:36pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/3 "2020-09-25T19:36:05Z")

</div>

> [@aaron-nimocks](#):
>
> `curl -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{ "transient": { "search.max_buckets": 200000 }}'`

Hi @aaron-nimocks thanks for the code i have tried it but getting below error

C:\Users\ssuparna.TEMENOSGROUP\>curl -XPUT "[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings)" -H 'Content-Type: application/json' -d'{ "transient": { "search.max\_buckets": 200000 }}'  
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}curl: (6) Could not resolve host: application  
curl: (6) Could not resolve host: transient  
curl: (3) [globbing] unmatched brace in column 1  
curl: (6) Could not resolve host: search.max\_buckets  
curl: (6) Could not resolve host: 200000  
curl: (3) [globbing] unmatched close brace/bracket in column 1

---

<div class="post-metadata">

**Author:** ![Suparna\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suparna_shankar/32/75382_2.png) [@Suparna\_Shankar](https://discuss.elastic.co/u/Suparna_Shankar)\
**Post date:** [September 25, 2020, 7:38pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/4 "2020-09-25T19:38:50Z")

</div>

@aaron-nimocks if i try below

curl -XPUT "[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings)" -H 'Content-Type: application/json' -d'{"transient":{"search.max\_buckets":200000}}'  
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}curl: (6) Could not resolve host: application

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 25, 2020, 7:55pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/5 "2020-09-25T19:55:44Z")

</div>

That seems to be a problem with curl on Windows (have heard about this being an issue before), as it is not the same as on Linux. I am not a Windows user so can unfortunately not recommend other tools.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [September 25, 2020, 10:00pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/6 "2020-09-25T22:00:00Z")

</div>

Not sure, this is odd. What returns when you do the below?

```auto
curl -XGET "http://localhost:9200/_cluster/health"

```

---

<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:** [October 23, 2020, 10:00pm UTC](https://discuss.elastic.co/t/unable-to-set-search-max-buckets-for-cluster-settings/250015/7 "2020-10-23T22:00:05Z")

</div>

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