美文网首页
es资源索引查看,清理,及其策略配置

es资源索引查看,清理,及其策略配置

作者: for笑 | 来源:发表于2023-05-14 15:28 被阅读0次

    ## 查看索引存储信息

    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

    相关文章

      网友评论

          本文标题:es资源索引查看,清理,及其策略配置

          本文链接:https://www.haomeiwen.com/subject/gjepsdtx.html