【问题标题】:Ritiring old logs without using Elasticsearch-curator在不使用 Elasticsearch-curator 的情况下淘汰旧日志
【发布时间】:2016-04-07 01:02:45
【问题描述】:

我正在运行一个 ELK 堆栈,并且想要一个自动停用超过某个年龄的日志的策略...我尝试使用 elasticsearch-curator,但它需要 python 2.7,我有 python 2.6.6,我很着急升级python以防我破坏其他包。

有没有类似的产品或者elasticsearch api可以满足这样的需求?

【问题讨论】:

    标签: elasticsearch elasticsearch-curator


    【解决方案1】:

    旧版本的 curator 将与旧版本的 ElasticSearch 一起使用(我正在使用 curator 版本 3.1.0 和 1.7.1 ES 集群。)

    【讨论】:

      【解决方案2】:

      我们开始使用 Elasticsearch S3 归档插件,但很快发现在恢复数据时存在某些限制。我们还遇到了插件的性能问题,这往往会减慢整个集群的速度。从那时起,我们已经迁移到一个新系统,在该系统中,我们使用我们自己的代码为我们和我们的客户存档数据,然后以明文格式将数据索引到 Elasticsearch。这为我们和客户提供了所需的所有灵活性。

      【讨论】:

        【解决方案3】:

        您可能会将对给定版本的 elasticsearch-py 模块的依赖误认为是 Elasticsearch 的版本。 Curator 版本 3.5.1 需要 es-py 2.3,但适用于大于 1.0 的任何版本的 elasticsearch。

        【讨论】:

        • 我还应该注意,Curator 确实需要 python 2.7。它已经在 Python 2.6 版本上进行了测试,因为这是 RHEL/CentOS 6 所需要的。
        猜你喜欢
        • 2019-06-05
        • 2015-07-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-06-11
        • 2011-02-15
        • 1970-01-01
        相关资源
        最近更新 更多