gpt4 book ai didi

filebeat - 如何禁用 filebeat 的 close_inactive 设置?

转载 作者:行者123 更新时间:2023-12-02 02:53:30 30 4
gpt4 key购买 nike

我的 filebeat(来自 docker.elastic.co/beats/filebeat:6.1.2 的容器)收割机正在被 close_inactive 关闭,我不希望它们被关闭。来自 hereclose_inactive 的文档州

When this option is enabled, Filebeat closes the file handle if a file has not been harvested for the specified duration.

...

You can use time strings like 2h (2 hours) and 5m (5 minutes). The default is 5m.

我的文件句柄在 5 分钟后被关闭。我知道我可以增加 close_inactive 时间,但第一句话表明该选项可以完全禁用。

我试过类似 close_inactive: false 的方法,但没有成功。如何禁用 close_inactive 设置?

最佳答案

如果您在 filebeat.yml 中添加选项 close_inactive: -1,Filebeat 将永远不会关闭该文件。

关于filebeat - 如何禁用 filebeat 的 close_inactive 设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50684423/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com