Reached open files limit: 4095, set by the 'max_open_files' option or default, files yet to open: 30608
这个错误是,logstash的file input插件配置的 max_open_files 默认值太小
是4095.
所以,要调大。
修改配置:
max_open_files => 65535

重启logstash,即可解决这个错误
参考:
官网地址:
https://www.elastic.co/guide/en/logstash/7.12/plugins-inputs-file.html
当Logstash的fileinput插件遇到'Reached open files limit'错误,原因是'max_open_files'配置默认值过小,只有4095。为了解决这个问题,需要将该选项调整到更高的数值,如65535。通过修改配置文件,将max_open_files设置为65535,然后重启Logstash服务,可以有效地避免此错误。参考官方文档进行配置变更。
2647

被折叠的 条评论
为什么被折叠?



