Cluster infoElasticsearch
GET _cluster/health
Check overall cluster health, status, and shard information.
curl -X GET "http://<host>:9200/_cluster/health?pretty"
Cluster health, index lifecycle, document APIs, and snapshot management.
Check overall cluster health, status, and shard information.
curl -X GET "http://<host>:9200/_cluster/health?pretty"
Return a concise table of nodes, roles, and resource usage.
curl -X GET "http://<host>:9200/_cat/nodes?v"
DELETE <index>
Create indices with mappings or remove them entirely.
curl -X PUT "http://<host>:9200/<index>?pretty" -H 'Content-Type: application/json' -d '{"settings":{"number_of_shards":1,"number_of_replicas":1}}'
PUT <index>/_settings
Update mappings or adjust index settings after creation.
curl -X PUT "http://<host>:9200/<index>/_mapping?pretty" -H 'Content-Type: application/json' -d '{"properties":{"user":{"type":"keyword"}}}'
PUT <index>/_doc/<id>
Index new documents with autogenerated or explicit IDs.
curl -X POST "http://<host>:9200/<index>/_doc?pretty" -H 'Content-Type: application/json' -d '{"user":"alice","message":"hello world"}'
Perform partial updates or scripted transforms on documents.
curl -X POST "http://<host>:9200/<index>/_update/<id>?pretty" -H 'Content-Type: application/json' -d '{"doc":{"status":"processed"}}'
Run search queries with filters, aggregations, and pagination.
curl -X POST "http://<host>:9200/<index>/_search?pretty" -H 'Content-Type: application/json' -d '{"query":{"match":{"message":"<keywords>"}}}'
List indices with size, docs count, and health indicators.
curl -X GET "http://<host>:9200/_cat/indices?v"
Copy documents between indices for migrations or transformations.
curl -X POST "http://<host>:9200/_reindex?pretty" -H 'Content-Type: application/json' -d '{"source":{"index":"<source>"},"dest":{"index":"<target>"}}'
GET _snapshot
Create and inspect snapshots for disaster recovery.
curl -X PUT "http://<host>:9200/_snapshot/<repo>/<snapshot>?wait_for_completion=true" -H 'Content-Type: application/json' -d '{"indices":"<index>","ignore_unavailable":true}'