简体   繁体   中英

connecting logstash with elasticsearch (not embedded)

I am trying to connect logstash (1.3.3) with elasticsearch (0.9+) on ubuntu12. I am not using the embedded option (it works). I am trying to get the standalone setup working. I am able to launch elasticsearch. I have tried to connect to elasticsearch (tried both 0.0.0.0 and 127.0.0.1) via the logstash.conf file but the connection does not appear to work. Any thoughts on troubleshooting will be helpful.

logstash.conf

output {
  stdout {codec => rubydebug }
  elasticsearch { host => "0.0.0.0" }

I can confirm via netstat that elasticsearch is listening on 0.0.0.0 (I have tried setting elasticsearch to run on 127.0.0.1 and switched logstash conf as well but that did not work either).

I can access elasticsearch on port 9200 via the browser.

Update: Pilot error - there was an issue in my elasticsearch.yml file that prevented discovery (I had added node.local:true during testing).

试点错误-我的elasticsearch.yml文件中存在一个阻止发现的问题(我在测试期间添加了node.local:true )。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM