I have installed Elasticsearch, Logstash, Kibana and Nginx following this guide,
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04
Elasticsearch is running on 9200
But running
curl http://localhost:5601
returns this:
curl: (7) Failed to connect to localhost port 5601: Connection refused
In kibana.yml
file I configured
server.port: 5601
server.host: "127.0.0.1"
Here I also checked with localhost
and aws private ip address
.
And while checking the port running this:
netstat -anp | grep 5601
I am getting:
(No info could be read for "-p": geteuid()=1000 but you should be root.)
I can start kibana running:
sudo service kibana start
But while checking status using:
sudo service kibana status
I get:
kibana is not running
I haven't setup firewall and running
sudo ufw status
Returns:
Status : Inactive
I am confused, why is the kibana port not listening?
You can check Kibana logs for why it is not starting at all. You may find things like kibana unable to connect elasticsearch at given url.
Its running now.
When I checked kibana log (vi /var/log/kibana/kibana.stderr
)
Error: EACCES, permission denied '/opt/kibana/optimize/.babelcache.json'
So I changed permission for the file .babelcache.json
sudo chown -R kibana:root /opt/kibana/optimize/.babelcache.json
Then restarted kibana , and this solved the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With