有人把kibana和elasticsearch分开部署过么????
RT之前一起部署成功了,现在需要部署在两台服务器上,总报Connection Failed,细节如下:
机器列表:
作用 外网ip 内网ip
Kibana 10.0.0.11 172.16.0.11
elasticsearch 无外网ip 172.16.0.22
在kibana端curl 172.16.0.22:9200已经能出json的结果页面:
{
"status" : 200,
"name" : "ES1",
"cluster_name" : "ES-logs-monitor",
"version" : {
"number" : "1.4.2",
"build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c",
"build_timestamp" : "2014-12-16T14:11:12Z",
"build_snapshot" : false,
"lucene_version" : "4.10.2"
},
"tagline" : "You Know, for Search"
}
kibana关键配置:
elasticsearch: "h无t视tp://172.16.0.22:9200",
elasticsearch关键配置:
cluster.name: ES-logs-monitor
node.name: "ES1"
path.data: /var/log/elasticsearch/data
path.logs: /var/log/elasticsearch/logs
http.cors.enabled: true
#http.cors.allow-origin: "h无t视tp://kba.test.com:9999"
#http.cors.allow-origin: "/.*/"
#http.cors.allow-origin: "h无t视tp://172.16.0.11:9999"
#http.cors.allow-origin: "h无t视tp://10.0.0.11:9999"
对外web域名为kba.test.com,端口为9999,最下面四种allow的配置方式都试过了,也都重启服务了,还是不行。。。。
大神召唤术!!!!! 完全看不懂~~~~~~~~~~~~路过顶一个 说下你的网络环境。我分开部署过。
我们公司elasticsearch 在机房,kibana部署在公司内部,网页浏览的时候要直接和9200通信,确保访问者能连接这个端口。 嗯嗯!就是你说的这个!防火墙把9200放行就行了~~~~
回复 3# typuc
我也在我们公司上了这个,用起来方便,多台机器情况下,可以快速定位故障服务器,故障时间点,前后关联日志。实时+速度快。 netstat -unltp | grep 9200如果显示:::9200 原因基本确定了,把你的elasticsearch 配置文件publish host 改成你主机的ip地址,然后重启服务器,elasticsearch 默认ipv4ipv6 都会监听的 对的 回复 6# howge
页:
[1]