Not able to access kibana UI hosted on aws

kibana is running on a server on AWS (ELK is also on the same server)
but i am not able to access it on UI.

It's public DNS : ec2-13-126-209-194.ap-south-1.compute.amazonaws.com
private IP: 172.31.4.164

i am trying hitting URL ec2-13-126-209-194.ap-south-1.compute.amazonaws.com:5601

tried with
172.31.4.164:5601 also but nothing coming up.

please help me in finding out where i am going wrong?

IGW is there on this instance and both inbound and outbound rules are open for 0.0.0.0/0::/0

thanks in advacnce

You might need to set the server.host setting: https://www.elastic.co/guide/en/kibana/current/settings.html

By default it's set to localhost.

If you want to expose your Kibana instance to the public, make sure to have a security solution and a save password in place.

i don't understand after a restart it started working on this.
thanks :slight_smile:

can you please help me in understanding the same thing in a cluster.

say i have a cluster of
dn-1(1.1.1.1)
dn-2(2.2.2.2)
dn-3(3.3.3.3)
m-1(4.4.4.4)
m-2(5.5.5.5)
m-3(6.6.6.6.)
cl-1(7.7.7.7)

what should be this server.host parameter's value ?

In your cluster are you running multiple Kibana instances or multiple Elasticsearch instances? If it's just multiple Elasticsearch instances, this doesn't influence the server.host setting.

It's always possible to set it to 0.0.0.0, then it will respond to any request that reaches the server.