Kibana port 5601 connection refused

hi, i install ELK stack and metricbeat with following this tutorial
https://dzone.com/articles/playing-around-with-metricbeat-and-elastic-stack-5

my OS is ubuntu.16.0.4

with lil bit configuration, elasticsearch is running .
i need to change network.host : 0.0.0.0
in elasticsearch.yml

now, im facing the same problem with kibana.
i try to add

network.host: 0.0.0.0
server.host: 0.0.0.0

or

network.host: 127.0.0.1
server.host: 127.0.0.1

the other configuration that i made :

elasticsearch.url: "http://localhost:9200"

i still got this message :

curl: (7) Failed to connect to 161.202.182.86 port 5601: Connection refused

what should i do?
pls help me.

thank you.

2 Likes

Why do you want to run kibana/es on 0.0.0.0 ?

if you run kibana and es on the same machine, es should probably just listen to 127.0.0.1.

What i would suggest is to first try to access kibana from the same machine its running on. That way you at least know its running ok, and that the only issue is with accessing it from outside.

what does netstat -natp | grep 5601 give you ?
can you connect to kibana from machine its running on ?
if not .... check logs, there should be some information on why its failing to start.

okay i found a way to fix this issue.
due to my kibana installation, there is no log folder.
in ubuntu, the location should be on /var/log/kibana

then i create it mannually, i give chmod 777.
and then inside the folder, i also create two files.
kibana.stdout and kibana.stderr

i also change the user, from root to kibana.

and it work perfectly well.

thank you

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.