List nodes

Show all Elasticsearch nodes with JVM heap, load and roles

curl -s http://localhost:9200/_cat/nodes?v

tool
elasticsearch19 commands
tags
elasticsearchmonitoring

More elasticsearch commands

  • curl -s -X POST http://localhost:9200/<index>/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"error"}}}'

    Full-text search for documents with "error" in the `message` field

  • curl -X PUT http://localhost:9200/_snapshot/<repo>/<snapshot>

    Create a snapshot in a registered repository

  • curl -s 'http://localhost:9200/<index>/_ilm/explain' | jq '.indices | to_entries[] | {index:.key, phase:.value.phase, action:.value.action}'

    Show the current ILM phase and action for an index

  • curl -s http://es:9200/_cluster/health?pretty

    Show cluster status (green, yellow or red) with shard counts

  • curl -s 'http://es:9200/_cat/indices?v&s=store.size:desc'

    Show all indices sorted by size, largest first

all 19 elasticsearch commands