链接:
1 https://blog.csdn.net/hanyuyang19940104/article/details/81743459
2 https://blog.csdn.net/qq_25933841/article/details/105799365
查看集群健康情况
curl 'localhost:9200/_cat/health?v'
查看节点情况
curl 'localhost:9200/_cat/nodes?v'
查看索引
curl 'localhost:9200/_cat/indices?v'
删除所有索引,但是一般情况下是删不掉的,会报错,应该 单独删除指定索引,替换_all为索引名称,索引删除以后,如果需要同步数据最好重启es和logstash再重新同步数据
curl -XDELETE 'localhost:9200/_all/?pretty'