How do I disable filebeat's close_inactive setting?

匿名 (未验证) 提交于 2019-12-03 01:00:01

问题:

My filebeat (container from docker.elastic.co/beats/filebeat:6.1.2) harvesters are being closed by the close_inactive and I don't want them to be. The documentation from close_inactive from here states

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.

My file handles are being closed after 5 minutes. I know I can increase the close_inactive time, but the first sentence indicates that the option can be disabled altogether.

I've tried things like close_inactive: false but no luck. How do I disable the close_inactive setting?

回答1:

Have you tried close_inactive: 0? That is what close_timeout is set to by default, which disables it.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!