본문 바로가기
개발

[elasticsearch] 자주 사용하는 API

by eun2ce 2022. 9. 7.

클러스터 디스크 현황

http://es-host:9200/_cat/allocation?v

클러스터 health check

http://es-host:9200/_cluster/health?pretty

index 상태 확인

http://es-host:9200/_cat/indices?v

모든 shard 상태 확인

http://es-host:9200/_cat/shards

특정 index 의 shard 상태 확인

http://es-host:9200/_cat/shards/{index_name}?v

샤드 개수

curl -s -XGET ${ELK_HOST}/_cluster/stats?filter_path=indices.shards.total