Cluster health
curl -s [hostname]/_cluster/health?pretty
List shards
curl localhost:9200/_cat/shards
Show allocation errors
curl localhost:9200/_cluster/allocation/explain?pretty
Snapshots
List snapshots repositories
curl -XGET [hostname]/_snapshot/_all?pretty
List all snapshots in a repository
curl -XGET [hostname]/_cat/snapshots/cs-automated?pretty
Create a new snapshot
curl -XPUT [hostname]/_snapshot/[repository]/[snapshot_name]
Restore a snapshot
curl -k -XPOST ' [hostname]/_snapshot/[repository]/[snapshot_name]/_restore' -d '{
"indices": "*",
"ignore_unavailable": true,
"rename_pattern": ".kibana",
"rename_replacement": "restored_.kibana"
}' -H 'Content-Type: application/json'