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
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
3 个回复
dongne
赞同来自: JourWon
JourWon
赞同来自:
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
赞同来自: