New

The executive guide to generative AI

Read more

发布到 Logstash 失败,并显示 “connection reset by peer” 消息

编辑

发布到 Logstash 失败,并显示 “connection reset by peer” 消息

编辑

Filebeat 需要与 Logstash 建立持久的 TCP 连接。如果防火墙干扰了连接,您可能会看到如下错误:

Failed to publish events caused by: write tcp ... write: connection reset by peer

解决问题的方法

  • 确保防火墙没有关闭 Filebeat 和 Logstash 之间的连接,或者
  • Logstash 输出中将 ttl 值设置为小于防火墙允许的最大时间的值,并将 pipelining 设置为 0(当使用 ttl 时,不能启用管道)。
Was this helpful?
Feedback