服务器上的Kibana部署问题。 。 。客户端无法访问GUI [英] Kibana deployment issue on server . . . client not able to access GUI

查看:1003
本文介绍了服务器上的Kibana部署问题。 。 。客户端无法访问GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在100.100.0.158 VM上配置了Logstash + ES + kibana,而Kibana在apache服务器下运行。 8080港口

I have configured Logstash + ES + kibana on 100.100.0.158 VM and Kibana is running under apache server. port 8080

现在我需要的是。我只需要向客户端发送URL100.100.0.158:8080/kibana,以便客户可以在网上查看他的数据。

Now what my need is . . I just have to give URL "100.100.0.158:8080/kibana" to client so client can see his data on web.

当我将这个URL放在客户端浏览器我收到这个错误
不能联系弹性搜索在http://127.0.0.1:9200请确保弹性搜索可以从您的系统到达

When when I put this URL on client browser I am getting this error "can't contact elasticsearch at http://"127.0.0.1":9200 please ensure that elastic search is reachable from your system"

我需要配置IP 100.100.0.158:9200或127.0.0.1:9200的ES吗? 。 !

Do I need to configure ES with IP 100.100.0.158:9200 or 127.0.0.1:9200 is ok . . !

帮助。 。 !

感谢
Tushar

Thanks Tushar

推荐答案

如果您的Kibana和ES安装在同一个盒子上,您可以通过在Kibana的config.js文件中使用此行自动检测ES URL / IP:

If your Kibana and ES are installed on the same box, you can have it auto-detect the the ES URL/IP by using this line in your Kibana's config.js file:

/** @scratch /configuration/config.js/5
 * ==== elasticsearch
 *
 * The URL to your elasticsearch server. You almost certainly don't
 * want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
 * the same host. By default this will attempt to reach ES at the same host you have
 * elasticsearch installed on. You probably want to set it to the FQDN of your
 * elasticsearch host
 */
elasticsearch: "http://"+window.location.hostname+":9200",

这是因为Kibana和ES之间的接口是通过JavaScript,因此使用 127.0。 localhost 实际上指向客户机(浏览器正在运行),而不是服务器。

This is because the interface between Kibana and ES is via JavaScript, and so using 127.0.0.1 or localhost actually points to the client machine (that the browser is running on) rather than the server.

这篇关于服务器上的Kibana部署问题。 。 。客户端无法访问GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆