【发布时间】:2015-10-06 21:49:39
【问题描述】:
尝试将一些日志发送到 logstash 服务器。使用 logstash forwarder 将日志转发到 logstash
但它会超时:
2015/03/04 08:19:15.266955 Started harvester at end of file (current offset now 10659): /apps/azuga-dds/logs/amqData.log
2015/03/04 08:19:15.267089 Setting trusted CA from file: /etc/logstash-forwarder/logstash-forwarder.crt
2015/03/04 08:19:15.290016 Connecting to [10.90.9.242]:5000 (ec2-54-70-33-51.us-west-2.compute.amazonaws.com)
2015/03/04 08:19:20.290259 Failure connecting to 10.90.9.242: dial tcp 10.90.9.242:5000: i/o timeout
2015/03/04 08:19:21.291691 Connecting to [10.90.9.242]:5000 (ec2-54-70-33-51.us-west-2.compute.amazonaws.com)
2015/03/04 08:19:26.291903 Failure connecting to 10.90.9.242: dial tcp 10.90.9.242:5000: i/o timeout
2015/03/04 08:19:27.293218 Connecting to [10.90.9.242]:5000 (ec2-54-70-33-51.us-west-2.compute.amazonaws.com)
知道如何解决这个问题。
【问题讨论】:
-
你能连接到 10.90.9.242:5000 吗?远程登录?换句话说,这个问题与 logstash-forwarder 有什么关系,还是一般的网络连接问题?
-
感谢 Magnus 的快速响应 .. 上面似乎已修复防火墙问题,一切正常...
-
但现在开始在 Logstash 上遇到一些奇怪的事情:log4j,[2015-03-10T16:17:46.469] WARN: org.elasticsearch.transport.netty: [logstash-ip-10-217-223 -172-32621-4016] 传输层捕获异常 [[id: 0x2 f519d64, /10.254.4.102:57123 :> /10.217.223.172:9301]],关闭连接 java.io.StreamCorruptedException: 内部传输消息格式无效
-
什么版本的 Logstash 和什么版本的 Elasticsearch?
-
logstash=1.4.2-1-2c0f5a1 elasticsearch=1.1.1
标签: logstash logstash-forwarder