- 运行命令查询索引名称,以及占用内存情况
curl -XGET http://localhost:9200/_cat/indices?v -u 账号:密码
- 运行命令查询ES占用内存
curl http://localhost:9200/_cat/allocation?v
- 然后运行命令删除ES的当前索引下的所有日志数据
curl -X POST -d '{"query":{"match_all":{}}}' -H 'Content-Type:application/json' http://localhost:9200/索引名称/_delete_by_query -u 账号:密码