Elasticsearchのcat count

Elasticsearchのcat countについて記す。

公式ドキュメント cat count を参考にした。

www.elastic.co

cat countは各インデックスのドキュメント数がわかる。

検証環境: Elasticsearch 6.0.0-rc2

bash-3.2$ curl -XGET 'localhost:9200/_cat/count?v&pretty'
epoch      timestamp count
1509623014 20:43:34  53
bash-3.2$ curl -XGET 'localhost:9200/_cat/indices?v&pretty'
health status index                       uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .suggest                    aVwVFFMdQgKr5uuobzKohQ   5   0          1            0      6.7kb          6.7kb
yellow open   .kibana                     aPRoMawdTuK4wjtItACVng   1   1          1            0      3.6kb          3.6kb
green  open   fess.20171102               fkkcZ7prSNGwEYPUJ7K6CA   5   0          0            0       955b           955b
green  open   fess_log                    M9jJNtX0QlOq-LM5TSAM9Q  10   0          0            0        2kb            2kb
green  open   .suggest_analyzer           Czs3okgZSyaqTm0zqf2SkA   5   0          0            0       955b           955b
green  open   .fess_config                HNPOMiU1SzC07_cVm6d7pg   2   0          9            0     22.5kb         22.5kb
green  open   .fess_user                  aLUKtbZiQoKD2dZ11px-jg   5   0          3            1      9.4kb          9.4kb
green  open   .configsync                 xEcKU45vRJGhvVJrDwoBqQ   5   0         37            0    127.6kb        127.6kb
green  open   .suggest_array              4w4fyV8aTYyO3g1B0PAuwg   5   0          2            0      9.3kb          9.3kb
green  open   fess.suggest.20171102172448 sTur6204QLeL4r8lX5R2tA   5   0          0            0       955b           955b
bash-3.2$ curl -XGET 'localhost:9200/_cat/count/.kibana?v&pretty'
epoch      timestamp count
1509623146 20:45:46  1