Steevo Wiki

Table of Contents

Table of Contents

  • Cluster health
  • List shards
  • Show allocation errors
  • Snapshots
  • List snapshots repositories
  • List all snapshots in a repository
  • Create a new snapshot
  • Restore a snapshot
Steevo Wiki
You are here: Home ยป elasticsearch

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'
Previous Next