curl -XGET 'localhost:9200/_all/_settings'
{
"logstash-my-project-2020.04.16": {
"settings": {
"index": {
"refresh_interval": "5s",
"number_of_shards": "5",
"provided_name": "logstash-my-project-2020.04.16",
"creation_date": "1586995225612",
"number_of_replicas": "1",
"uuid": "yHA75LRSQ1GpKnG_3Ob5Bw",
"version": {
"created": "6030299"
}
}
}
}
}
curl -XGET http://localhost:9200/_cluster/settings
This will tell you whether any watermarks are configured, for example.
curl -XPUT -H 'Content-Type: application/json' 'http://localhost:9200/_cluster/settings' -d '{ "transient":{
"cluster.routing.allocation.disk.watermark.low":"95%",
"cluster.routing.allocation.disk.watermark.high": "97%",
"cluster.routing.allocation.disk.watermark.flood_stage": "98%",
"cluster.info.update.interval": "1m"
}}'
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'