绊脚石乃是进身之阶。

filebeat和logstash加密通信时出现write: connection reset by peer错误

Logstash | 作者 JourWon | 发布于2017年12月20日 | 阅读数:9590

2017/12/19 02:46:25.361157 sync.go:105: ERR Failed to publish events (host: 10.172.0.165:5044:10200), caused by: write tcp 10.172.0.161:35425->10.172.0.165:5044: write: connection reset by peer
2017/12/19 02:46:25.361186 single.go:91: INFO Error publishing events (retrying): write tcp 10.172.0.161:35425->10.172.0.165:5044: write: connection reset by peer
已邀请:

dongne

赞同来自: JourWon

之前好像遇到过这样的问题,你可以先关闭SSL证书看看是不是这样的问题,好像还是证书的问题,具体怎么操作的我还真忘记了

JourWon

赞同来自:

filebeat配置:
output.logstash:
  # The Logstash hosts
  hosts: ["10.172.0.165:5044"]

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  ssl.certificate_authorities: ["/usr/local/elk/pki/tls/certs/logstash.crt"]

  # Certificate for SSL client authentication
  ssl.certificate: "/usr/local/elk/pki/tls/certs/filebeat.crt" 

  # Client Certificate Key
  ssl.key: "/usr/local/elk/pki/tls/private/filebeat.key" 
 
logstash配置:
input {
    beats {
        port => 5044
        ssl => true
        ssl_certificate_authorities => ["/usr/local/elk/pki/tls/certs/filebeat.crt"]
        ssl_certificate => "/usr/local/elk/pki/tls/certs/logstash.crt" 
        ssl_key => "/usr/local/elk/pki/tls/private/logstash.key" 
        ssl_verify_mode => "force_peer" 
    }
}

sxl

赞同来自:

你这个问题解决了吗? 我现在和你的问题一样,看到回复下

要回复问题请先登录注册