无法使用URL在AWS EC2实例上访问Kibana
我在EC2实例上安装了ElasticSeasrch和Kibana,我可以在此url http:// public-ip/9200
上访问Elasticsearch。但是我无法使用http:// public-ip/5601
访问基巴纳。
我已经配置了kibana.yml
并添加了某些字段。
server.port: 5601
server.host: 0.0.0.0
elasticsearch.url: 0.0.0.0:9200
做WGET http:// localhost:5601
我要低于输出:
--2022-06-10 11:23:37-- http://localhost:5601/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:5601... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83731 (82K) [text/html]
Saving to: ‘index.html’
我在做什么错?
I have Elasticseasrch and Kibana installed on EC2 instance where I am able to access Elasticsearch using on this url http://public-ip/9200
. But I am unable to access Kibana using http://public-ip/5601
.
I have configured kibana.yml
and added certain fields.
server.port: 5601
server.host: 0.0.0.0
elasticsearch.url: 0.0.0.0:9200
On doing wget http://localhost:5601
I am getting below output:
--2022-06-10 11:23:37-- http://localhost:5601/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:5601... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83731 (82K) [text/html]
Saving to: ‘index.html’
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
服务器主机将设置为
0.0.0.0
表示应该从Localhost外部访问,但请仔细检查听众实际上使用nettat -netstat -nltpu
在该端口上侦听外部连接。该服务器在端口9200上的公共IP上也可以访问,因此请尝试以下内容:ufw
或firewalld
)应允许该端口上的流量。您可以运行iptables -L -NXV
检查防火墙规则。tcpdump -ni在该端口上运行数据包捕获-NI端口5601
并检查您是否有任何数据包/在该端口上。tcpdump
上看不到任何数据包,请使用 vpc Flow日志查看数据包是否进出该端口。Server Host set to
0.0.0.0
means it should be accessible from outside localhost but double check that the listener is actually listening for external connections on that port usingnetstat -nltpu
. The server is also accessible on it's public IP on port 9200 so try the following:ufw
orfirewalld
) should allow traffic on that port. You can runiptables -L -nxv
to check the firewall rules.tcpdump -ni any port 5601
and check if you have any packets coming in/out on that port.tcpdump
, use VPC Flow Logs to see if packets are coming in/out that port.考虑到Kibana端口(5601)是通过安全组打开的,
我可以通过更新config
server.host:localhost
server.host:0.0.0.0.0
来解决问题。和
elasticsearch.hosts:[“ http:// localhost:9200”]
(在我的情况下,kibana和es都在同一台机器上运行)in Kibana.ymlhttps://discuss.elastic.co/tasty.co/t/kibana-co/t/kibana-nostic URL-GIVE-CONNECTION填充乘式机场/122067/8
Considering the kibana port (5601 ) is open via security groups
I could able to resolve the issue by updating config
server.host:localhost
toserver.host:0.0.0.0
and
elasticsearch.hosts: ["http://localhost:9200"]
(in my case kibana and ES both are running on the same machine) in kibana.ymlhttps://discuss.elastic.co/t/kibana-url-gives-connection-refused-from-outside-machine/122067/8