【问题标题】:How to delete elastic search indices older than 30 days using dev tool commands如何使用开发工具命令删除超过 30 天的弹性搜索索引
【发布时间】:2021-01-06 07:15:45
【问题描述】:

我想使用 kibana 开发工具删除 30 天后的 kibana 索引。

【问题讨论】:

    标签: elasticsearch kibana-7


    【解决方案1】:

    您可以简单地使用Index life cycle management 来自动化它。

    编辑您可以使用http://es-host:9200/_cat/indices?h=index,creation.date.string 查找集群中所有索引的索引创建时间,一旦您拥有所有索引,您可以使用delete indices API 删除它们。

    【讨论】:

    • 但是目前,服务器已满,我必须手动删除索引
    • 不,我无法准确删除 30 天的积压工作,我只想拥有 30 天的日志并希望删除超过 30 天的旧索引。
    • 我的日志以以下格式存储黄色 open logstash-0020.37 kojvPxpyQx2LVK1835Ldgw 1 1 10 0 88kb 88kb
    • @VVR 我没听明白,你提到要删除索引而不是超过 30 天的日志
    猜你喜欢
    • 1970-01-01
    • 2015-05-23
    • 2016-11-30
    • 2021-03-06
    • 2016-01-30
    • 1970-01-01
    • 2015-11-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多