2015-10-14 91 views
1

我正在從NXlog服務器收集日誌&將其發送到我的Logstash服務器{AWS上的ELK堆棧}。它能夠將日誌發送給ES完美,但隨後它只是彎下腰發送日誌有以下錯誤ES:Logstash無法將日誌推送到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

什麼是輸出ES健康檢查curl --user admin:password -XGET'http:// localhost:9200/_cluster/health?pretty = true'' should be work – ydaetskcoR

回答