我在 logstash 和 logstash-forwarder 之间的连接有问题。
问题是logstash-forwarder发送一些日志文件一段时间,logstash和logstash-forwarder之间的连接会断开。
logstash-forwarder.err
2015/08/19 Registrar: processing 1 events
2015/08/19 Registrar: processing 3 events
2015/08/19 Registrar: processing 2 events
2015/08/19 Read error looking for ack: read tcp x.x.x.x:5000: i/o timeout
2015/08/19 Setting trusted CA from file: /etc/pki/tls/certs/lumberjack.crt
2015/08/19 Connecting to [x.x.x.x]:5000 (hostname-example.logstash.com)
2015/08/19 Failure connecting to x.x.x.x: dial tcp x.x.x.x:5000: i/o timeout
日志存储配置
input{
lumberjack{
port=>5000
ssl_certification => "/etc/pki/tls/certs/lumberjack.crt"
ssl_key => "/etc/pki/tls/certs/lumberjack.key"
type => "secure"
}
}
filter{
...
...
}
output{
stdout{
codec => rubydebug
}
}
logstash 版本 1.5.1
我的虚拟机在 Azure