➜ ~ curl http://127.0.0.1:9200/_cat/indices green open .kibana_task_manager_1 CSkxMSy9Q-KwnkYWaXRdgA 1 0 2 1 36kb 36kb green open .apm-agent-configuration -01dX-i_Qj-9JuvMpzQZwQ 1 0 0 0 283b 283b green open kibana_sample_data_logs o7WdfkaISSOS6IoxtLjH9A 1 0 14074 0 11.4mb 11.4mb green open .kibana_1 OqzG0OSkQsSnBKpUcKq1rg 1 0 55 4 136.4kb 136.4kb # 输出表头 ➜ ~ curl http://127.0.0.1:9200/_cat/indices\?v health status index uuid pri rep docs.count docs.deleted store.size pri.store.size green open .kibana_task_manager_1 CSkxMSy9Q-KwnkYWaXRdgA 1 0 2 1 36kb 36kb green open .apm-agent-configuration -01dX-i_Qj-9JuvMpzQZwQ 1 0 0 0 283b 283b green open kibana_sample_data_logs o7WdfkaISSOS6IoxtLjH9A 1 0 14074 0 11.4mb 11.4mb green open .kibana_1 OqzG0OSkQsSnBKpUcKq1rg 1 0 55 4 136.4kb 136.4kb
4.2 根据条件查看索引
# 搜索.k开头的索引 ➜ ~ curl http://114.116.248.223:9200/_cat/indices/.k\*\?v health status index uuid pri rep docs.count docs.deleted store.size pri.store.size green open .kibana_task_manager_1 CSkxMSy9Q-KwnkYWaXRdgA 1 0 2 1 36kb 36kb green open .kibana_1 OqzG0OSkQsSnBKpUcKq1rg 1 0 55 4 136.4kb 136.4kb