Node stats elasticsearch
Show all ES nodes with JVM heap, load, roles
curl -s http://localhost:9200/_cat/nodes?v
more elasticsearch
all 19 commands →
Search query
curl -s -X POST http://localhost:9200/<index>/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"error"}}}'
Snapshot create
curl -X PUT http://localhost:9200/_snapshot/<repo>/<snapshot>
ILM explain index
curl -s 'http://localhost:9200/<index>/_ilm/explain' | jq '.indices | to_entries[] | {index:.key, phase:.value.phase, action:.value.action}'
Check cluster health
curl -s http://es:9200/_cluster/health?pretty
List indices with size
curl -s 'http://es:9200/_cat/indices?v&s=store.size:desc'