简体   繁体   English

kibana无法连接到服务器Elasticsearch索引-ECONNREFUSED

[英]kibana not able to connect to server elasticsearch index - ECONNREFUSED

I have elasticsearch server running having indexes, say server XX.XXX.XXX.XXX:9200. 我有运行带有索引的Elasticsearch服务器,例如服务器XX.XXX.XXX.XXX:9200。

I have index in the server ES cluster XX.XXX.XXX.XXX:9200 for which I am trying to create dashboards in my localhost:5601 (Kibana) 我在服务器ES群集XX.XXX.XXX.XXX:9200中有索引,我正尝试为其在localhost:5601(Kibana)中创建仪表板

In my kibana.yml I have this configuration: 在我的kibana.yml中,我有以下配置:

server.port: 5601
server.host: "localhost"

# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://XX.XXX.XXX.XXX:9200"

In Elasticsearch.yml I have this config: 在Elasticsearch.yml中,我有以下配置:

network.host: 0.0.0.0 (to accept all the IPs) 
http.port: 9200

But I am getting this error when running kibana.yml : 但是我在运行kibana.yml时遇到此错误:

connect ECONNREFUSED http://XX.XXX.XXX.XXX:9200 Unable to connect to ElasticSearch at http://XX.XXX.XXX.XXX:9200 连接ECONNREFUSED http://XX.XXX.XXX.XXX:9200无法连接到http://XX.XXX.XXX.XXX:9200的ElasticSearch

Can anyone tell me where am I doing wrong here to get the kibana up and running with the server index of ES? 谁能告诉我我在哪里做错了以使kibana和ES服务器索引一起运行?

In your kibana.yml put this configuration: 在您的kibana.yml以下配置:

server.port: 5601
server.host: "0.0.0.0"

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

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