Logstash无法将日志推送到ES

时间:2015-10-14 05:57:53

标签: amazon-web-services elasticsearch logstash

我正在从NXlog服务器收集日志&将其发送到我的Logstash服务器{AWS机器上的ELK堆栈}。它能够完美地将日志发送到ES,但之后只是将日志发送到ES,并出现以下错误:

{:timestamp=>"2015-10-13T06:41:25.526000+0000", :message=>"Got error to send bulk of actions: localhost:9200 failed to respond", :level=>:error}
{:timestamp=>"2015-10-13T06:41:25.531000+0000", :message=>"Failed to flush outgoing items", 
{:timestamp=>"2015-10-13T06:41:26.538000+0000", :message=>"Got error to send bulk of actions: Connection refused", :level=>:error}

这是安全组问题吗?或其他什么?

此外,我的logstash输出文件如下所示:

output {
  stdout { }
  elasticsearch { host => "localhost" protocol => "http" port => "9200" }
}

1 个答案:

答案 0 :(得分:0)

我得到了答案,我有1.5版本,它有一个错误:(

https://github.com/elastic/logstash/issues/2894