Elasticsearch API 인덱스 목록 용량 조회 /_cat/indices

(Elasticsearch API cat/indices에서 넘어옴)

1 개요[ | ]

Elasticsearch API _cat/indices
Elasticsearch API 인덱스 목록 용량 조회 /_cat/indices
root@localhost:~# curl localhost:9200/_cat/indices
yellow open myindex01 MRsSGjKRSu2mE-D2wAK_ew 1 1 3 0 3.6kb 3.6kb
yellow open myindex02 gd1MRmJ-Se-CJ1UD_Pz8Fw 1 1 3 0 3.6kb 3.6kb
root@localhost:~# curl localhost:9200/_cat/indices?v
health status index     uuid                   pri rep docs.count docs.deleted store.size pri.store.size
yellow open   myindex01 MRsSGjKRSu2mE-D2wAK_ew   1   1          3            0      3.6kb          3.6kb
yellow open   myindex02 gd1MRmJ-Se-CJ1UD_Pz8Fw   1   1          3            0      3.6kb          3.6kb
root@localhost:~# curl localhost:9200/_cat/indices?format=json
[{"health":"yellow","status":"open","index":"myindex01","uuid":"MRsSGjKRSu2mE-D2wAK_ew","pri":"1","rep":"1","docs.count":"3","docs.deleted":"0","store.size":"3.6kb","pri.store.size":"3.6kb"},{"health":"yellow","status":"open","index":"myindex02","uuid":"gd1MRmJ-Se-CJ1UD_Pz8Fw","pri":"1","rep":"1","docs.count":"3","docs.deleted":"0","store.size":"3.6kb","pri.store.size":"3.6kb"}]
root@localhost:~# curl 'localhost:9200/_cat/indices?format=json&pretty'
[
  {
    "health" : "yellow",
    "status" : "open",
    "index" : "myindex01",
    "uuid" : "MRsSGjKRSu2mE-D2wAK_ew",
    "pri" : "1",
    "rep" : "1",
    "docs.count" : "3",
    "docs.deleted" : "0",
    "store.size" : "3.6kb",
    "pri.store.size" : "3.6kb"
  },
  {
    "health" : "yellow",
    "status" : "open",
    "index" : "myindex02",
    "uuid" : "gd1MRmJ-Se-CJ1UD_Pz8Fw",
    "pri" : "1",
    "rep" : "1",
    "docs.count" : "3",
    "docs.deleted" : "0",
    "store.size" : "3.6kb",
    "pri.store.size" : "3.6kb"
  }
]
인덱스가 하나도 없는 경우
root@localhost:~# curl localhost:9200/_cat/indices
root@localhost:~#
root@localhost:~# curl localhost:9200/_cat/indices?format=json
[]

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}