Skip to content

Instantly share code, notes, and snippets.

@nunosilva800
Created December 13, 2021 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunosilva800/d8a08f7a73a07911a1d0f503edbfc83f to your computer and use it in GitHub Desktop.
Save nunosilva800/d8a08f7a73a07911a1d0f503edbfc83f to your computer and use it in GitHub Desktop.
ElasticSearch cmd tools

Index read_only_allow_delete can be set to true automatically when disk space is low. This allows writing to indexes again:

curl -X PUT "http://localhost:9200/_all/_settings?pretty" -H 'Content-Type: application/json' -d'
{                
    "index.blocks.read_only_allow_delete": false
}
'
@nunosilva800
Copy link
Author

fixes error:

[FORBIDDEN/12/index read-only / allow delete (api)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment