export ES_HOST=https://MY_ELASTIC_HOST
Task | Command | Comment |
---|---|---|
List indices: | curl "${ES_HOST}/_cat/indices?v" |
|
Delete indices: | curl -XDELETE "${ES_HOST}/index1,index2" |
Delete index1 and index2 |
Cluster migration Status: | curl -XGET "${ES_HOST}/_cat/recovery?v&active_only" |
Output of this command should vary over time period (ex- 1 mintue) |
Shards Status: | curl -XGET "${ES_HOST}/_cat/allocation?v" |
Shards are allocated to each data node and how much disk space they are using |
Number of shards: | curl "${ES_HOST}/_cat/shards" |
Shards are allocated to each data node and how much disk space they are using |