简体   繁体   English

将logstash与elasticsearch连接(未嵌入)

[英]connecting logstash with elasticsearch (not embedded)

I am trying to connect logstash (1.3.3) with elasticsearch (0.9+) on ubuntu12. 我正在尝试在ubuntu12上将logstash(1.3.3)与elasticsearch(0.9+)连接起来。 I am not using the embedded option (it works). 我没有使用嵌入式选项(有效)。 I am trying to get the standalone setup working. 我正在尝试使独立安装程序正常工作。 I am able to launch elasticsearch. 我能够启动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. 我尝试通过logstash.conf文件连接到elasticsearch(尝试了0.0.0.0和127.0.0.1),但是连接似乎无法正常工作。 Any thoughts on troubleshooting will be helpful. 有关故障排除的任何想法都将有所帮助。

logstash.conf 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). 我可以通过netstat确认elasticsearch正在监听0.0.0.0(我已经尝试将elasticsearch设置为在127.0.0.1上运行,并且也切换了logstash conf,但这也不起作用)。

I can access elasticsearch on port 9200 via the browser. 我可以通过浏览器访问9200端口上的elasticsearch。

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 )。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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