## 查看索引存储信息
curl http://0.0.0.0:9200/_cat/indices?v
## 清理索引资源
curl -XDELETE 'http://0.0.0.0:9200/index_name'
## 查看清理策略配置
curl -XGET 'http://0.0.0.0:9200/_ilm/policy/logbeat'
## 调整清理策略配置
curl -H "Content-Type: application/json" -d '{"policy": {"phases": { "hot": {"min_age": "0ms", "actions": { "rollover": {"max_age": "3d","max_size": "50gb"}} },"delete": { "min_age": "3d","actions": {"delete": { "delete_searchable_snapshot": true }}}}}}' -X PUT http://0.0.0.0:9200/_ilm/policy/logbeat
网友评论