ILM explain index
Show current ILM lifecycle phase and action for an index
curl -s 'http://localhost:9200/<index>/_ilm/explain' | jq '.indices | to_entries[] | {index:.key, phase:.value.phase, action:.value.action}'
- tool
- elasticsearch19 commands
- tags
- elasticsearch
More elasticsearch commands
-
curl -s http://es:9200/_cluster/health?prettyShow cluster status: green/yellow/red with shard counts
-
curl -s 'http://es:9200/_cat/indices?v&s=store.size:desc'All indices sorted by store size (largest first)
-
curl -X DELETE http://es:9200/logs-2024.01.01Remove a specific index (irreversible)
-
curl -X GET 'http://es:9200/logs-*/_search?pretty' -H 'Content-Type: application/json' -d '{"query":{"match":{"level":"error"}},"size":5}'Find last 5 error log entries
-
curl -s 'http://es:9200/_cat/shards?v&h=index,shard,prirep,state,node,unassigned.reason'Show all shards with their state and unassigned reason