共计 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
正文完
发表至: ELK运维
2021-03-02