返回的列标题的详细解释信息。每个cat命令后面都可以加上help,查看帮助信息。
GET _cat/master?help

headers每个命令都接受一个查询字符串参数h,该参数仅强制显示那些列。&v显示列

数字格式许多命令提供了几种类型的数字输出,可以是字节,大小或时间值。 默认情况下,这些类型是人类格式的,例如3.5mb而不是3763212。人类值不能进行数字排序,因此要在顺序重要的地方使用这些值,可以对其进行更改。
如果要更改时间单位,请使用时间参数。
如果要更改尺寸单位,请使用size参数。
如果要更改字节单位,请使用bytes参数。
GET /_cat/indices?bytes=mb&s=store.size:desc&v

sort排序每个命令都接受一个查询字符串参数s,该参数按指定为参数值的列对表进行排序。 列可以通过名称或别名来指定,并以逗号分隔的字符串形式提供。 默认情况下,排序以升序方式进行。 将:desc附加到一列将颠倒该列的顺序。 :asc也被接受,但表现出与默认排序顺序相同的行为。
例如,使用排序字符串s = column1,column2:desc,column3,将按列1的升序,按列2的降序和按列3的升序对表进行排序。
GET _cat/templates?v&s=order:desc,index_patterns

format输出格式#支持的输出格式有json,test,yaml等
#默认以text格式输出
#以json格式输出 format=json&pretty
GET _cat/indices?v&h=index,docs.count,store.size&bytes=kb&format=json&pretty

#以yaml格式输出 format=yaml&pretty
GET _cat/indices?v&h=index,docs.count,store.size&bytes=kb&format=yaml&pretty

_cat/health 查看集群健康状态GET _cat/health?v

描述:
cluster ,集群名称
status,集群状态 green代表健康;yellow代表分配了所有主分片,但至少缺少一个副本,此时集群数据仍旧完整;red代表部分主分片不可用,可能已经丢失数据。
node.total,代表在线的节点总数量
node.data,代表在线的数据节点的数量
shards, active_shards 存活的分片数量
pri,active_primary_shards 存活的主分片数量 正常情况下 shards的数量是pri的两倍。
relo, relocating_shards 迁移中的分片数量,正常情况为 0
init, initializing_shards 初始化中的分片数量 正常情况为 0
unassign, unassigned_shards 未分配的分片 正常情况为 0
pending_tasks,准备中的任务,任务指迁移分片等 正常情况为 0
max_task_wait_time,任务最长等待时间
active_shards_percent,正常分片百分比 正常情况为 100%
_cat/nodes 查看集群节点和磁盘剩余GET _cat/nodes?v

描述:
heap.percent ,堆内存占用百分比
ram.percent ,内存占用百分比
cpu ,CPU占用百分比
load_1m load_5m load_15m ,一分钟五分钟十五分钟负载
node.role , m:master eligible node, d:data node, i:ingest node。master *表示节点是集群中的主节点current master
name ,节点名
_cat/indices 查看索引情况GET _cat/indices?v

GET _cat/indices/{index}:GET _cat/indices/my_index1?v
描述:
1)health \ status \index
2)how many shards make up an index, (pri:主分配, rep:副本分片)
3)the number of docs, (docs.count :文档数)
4)deleted docs, (删除文档数)
5)and total store size (all shards including replicas). 全部分片存储大小
6)primary store size, 主分片存储大小
_cat/allocation 查看分配#查看每个数据节点上的分片数(shards),以及每个数据节点磁盘剩余
GET _cat/allocation?v

描述:
1)shards ,节点说承载的分片数
2) disk.indices ,索引占用的空间大小
3)disk.used ,节点所在机器已使用磁盘空间
4)disk.avail ,磁盘可用容量
5)disk.total, 磁盘总容量
6)disk.percent ,磁盘便用率
7)ip ,节点所属机器IP地址
8)node ,节点名
_cat/plugins 查看每个节点正在运行的插件GET _cat/plugins?v

参考:https://blog.csdn.net/iris_csdn/article/details/115860853