Error when clone index

I want to clone my index, i have done what shown in this page to clone the index using this command.

POST /my_index/_clone/my_index_clone

I also tried to make the index read-only first with this command

PUT /my_index/_settings
{   "settings": {
  "index.blocks.write": false
  }
}

But i always get this error

{
  "error": {
    "root_cause": [
      {
        "type": "parse_exception",
        "reason": "request body is required"
      }
    ],
    "type": "parse_exception",
    "reason": "request body is required"
  },
  "status": 400
}

Can someone help me on this? Thank you

Hi @Muhammad_Fhadli. You posted this in the Kibana forum, but this is more of an Elasticsearch question. But I will do my best to help. I think you want to Add an Index Block.

So I believe your command should be PUT /my-index/_block/read_only.

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