_cat
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1588415204 10:26:44 my-application yellow 1 1 6 6 0 0 4 0 - 60.0%
- green:每个索引的primary shard和replica shard都是active状态的
- yellow:每个索引的primary shard都是active状态的,但是部分replica shard不是active状态,处于不可用的状态
- red:不是所有索引的primary shard都是active状态的,部分索引有数据丢失了
快速查看集群中有哪些索引
GET /_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana_task_manager Cz6UQwciQomh_epa7rQFJA 1 0 2 0 45.5kb 45.5kb
yellow open test_index 9lpjwWMHTz6MRxY2D4_sFA 1 1 0 0 283b 283b
green open .kibana_1 YXdIKqgDRKuBiQSu-YK2uA 1 0 3 0 11.9kb 11.9kb
CRUD
- 类似 REST 风格的 GET、PUT、POST、DELETE
- 注意 PUT 更新操作要求带上全部字段,即全量更新;POST 为增量更新