# How to add "index.mapping.total\_fields.limit" in command prompt

**URL:** https://discuss.elastic.co/t/how-to-add-index-mapping-total-fields-limit-in-command-prompt/292415
**Category:** Elasticsearch
**Created:** [December 19, 2021, 8:12pm UTC](https://discuss.elastic.co/t/how-to-add-index-mapping-total-fields-limit-in-command-prompt/292415 "2021-12-19T20:12:12Z")
**Posts on this page:** 3
**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: [December 19, 2021, 8:12pm UTC](https://discuss.elastic.co/t/how-to-add-index-mapping-total-fields-limit-in-command-prompt/292415/1 "2021-12-19T20:12:13Z")

</div>

HI, am trying to add "index.mapping.total\_fields.limit" to 2000 using cmdline but getting below exception

"curl -XPUT [http://127.0.0.1:9200/log4j-2021.12.19/\_settings](http://127.0.0.1:9200/log4j-2021.12.19/_settings) -H 'Content-Type: application/json' -d '{ "index.mapping.total\_fields.limit" : 2000 }'"

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}curl: (6) Could not resolve host: index.mapping.total\_fields.limit  
curl: (3) Bad URL, colon is first character  
curl: (6) Could not resolve host: 2000  
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: [December 19, 2021, 8:51pm UTC](https://discuss.elastic.co/t/how-to-add-index-mapping-total-fields-limit-in-command-prompt/292415/2 "2021-12-19T20:51:29Z")

</div>

I have tried below "curl -H 'Content-Type:application/json' -X PUT [http://localhost:9200/log4j-2021.12.19/\_settings](http://localhost:9200/log4j-2021.12.19/_settings) -d '{"index.mapping.total\_fields.limit":2000}'"

but getting {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

---

<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: [January 16, 2022, 8:52pm UTC](https://discuss.elastic.co/t/how-to-add-index-mapping-total-fields-limit-in-command-prompt/292415/3 "2022-01-16T20:52:17Z")

</div>

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