解决filebeat报413 Request Entity Too Large错误

356次阅读
没有评论

共计 300 个字符,预计需要花费 1 分钟才能阅读完成。

背景

完整的报错内容如下:

filebeat failed to publish events 413 request entity too large

遇到此种报错将会导致 es 中没有数据

解决方法

找到 filebeat 的主配置 filebeat.yml,在 output 中加入 bulk_max_size: 20,这个值默认是 50,我们要改小一点,改成 10 或者 20 都行,由于 yaml 这种格式极易出错引起不适,我把相关的部分摘录如下:

filebeat:
  prospectors:
      max_bytes: 900000
...
output:
  elasticsearch:
    bulk_max_size: 20
    bulk_max_bytes: 10485760

 

正文完
 
sharp097
版权声明:本站原创文章,由 sharp097 2021-03-02发表,共计300字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)