How to add "index.mapping.total_fields.limit" in command prompt

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

"curl -XPUT -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

I have tried below "curl -H 'Content-Type:application/json' -X PUT 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}

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