Loading...

Catalog

Get verbose output

GET _cat/indices?v

Output

health status index                         uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   metrics-2017.02.08            2LjFJYDrSlifpNRTGfQODg   2   1    6715909            0      3.3gb          1.7gb

Check master nodes

Kibana Console

GET _cat/master?v

Example Output

id                     host         ip           node
mu7on18lTkCsuI2EeY1X0Q mtzhlrshld03 10.22.63.221 Setinal Rock

Sorting on fields

Get closed indices first

GET /_cat/indices?v&s=status:asc

Get biggest indices

GET /_cat/indices?v&s=store.size:desc

Output

health status index                         uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   ep2-itu-2017.02.08            QQ2b6T5dTr6hOYitNhhEWw   1   1   51843464            0     46.5gb         22.2gb
green  open   ep2-itu-2017.02.07            4nRKYhSRRDqRGMAVOZfDMg   1   1   23538256     21202000     35.5gb         17.7gb
green  open   ep2-itu-2017.02.06            7py8fEL7Qci3bsTmUvMsxA   1   1   16666008            0     11.7gb          5.8gb

Select Headers

If you need only specific values, you can use the header option to select for instance only the index name.

GET _cat/indices/fo-log-2017*?h=index&s=index:asc

fo-log-2017.05.25
fo-log-2017.05.26
fo-log-2017.05.27

Check Mapping

Check Mapping

GET index_name/_mapping

Check Field Mapping

GET index_name/_mapping/field/field_name