我通過ELMA彈性搜索1.3.2。 ELMA安裝程序將ES REST API置於具有SSL和基本身份驗證的Apache反向代理之後。Logstash不會與Elastic Search進行通信
在單獨的主機上,我試圖設置Logstash 1.4.2將一些信息轉發給ES。我的LS的輸出部分如下:
output {
stdout { codec => rubydebug }
elasticsearch {
host => "192.168.248.4"
}
這將產生以下的錯誤:
log4j, [2014-09-25T01:40:02.082] WARN: org.elasticsearch.discovery: [logstash-ubuntu-jboss-39160-4018] waited for 30s and no initial state was set by the discovery
然後我嘗試設置協議HTTP如下:
elasticsearch {
host => "192.168.248.4"
protocol => "http"
}
這會產生連接拒絕錯誤:
Faraday::ConnectionFailed: Connection refused - Connection refused
那麼我已經嘗試設置端口9200(這給拒絕連接錯誤)和9300這給:
Faraday::ConnectionFailed: End of file reached
我如何能得到logstash說我的ES任何想法?
我認爲這個問題是更好的措辭如下
network.publish_host
財產network.bind_host
屬性:http://stackoverflow.com/questions/ 26045235 /正在使用-logsash-to-talk-elastic-search-with-https-basic-auth – Raj 2014-09-25 18:11:41