June 19, 2020 · devops Cli

List Index age and ilm action

curl -H 'Content-type: application/json' \ 
-XGET 'http://cluster:port/*/_ilm/explain' | jq '.indices | keys[] as $k | "\($k) age: \(.[$k] | .age), phase: \(.[$k] | .phase)"'