0

I am trying to change the Elastic Search index setting to make it writable by curl command.

curl -XPUT http://1XX.xxx.xx9.xx0:9200/my_index/_settings
 { "index": { 
             "index.blocks.read_only" : false
             }
 }

But I am getting some error

curl: (3) [globbing] unmatched close brace/bracket in column 1

1 Answer 1

2

Try the following

curl -XPUT http://1XX.xxx.xx9.xx0:9200/my_index/_settings -H 'Content-Type: application/json' -d '{ "index": {"blocks.read_only" : false } }'

The above error is caused because in curl you have to provide the body using -d and enclosing everything in single quotes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.