"Connection Refused" for Elasticsearch and Kibana on AWS Elastic Beanstalk

I am trying to get the ELK stack deployed on my EC2 instance belonging to an ElasticBeanstalk environment, a Django app. I was able to set-up the ELK stack locally and it worked perfectly fine.

But now I am struggling with deployment, when I do curl http://localhost:9200 from the instance, elasticsearch works fine and shows me the default page with JSON "You Search". Next step I felt was to open a port in my Load Balancer which I did (TCP port 5601) for Kibana. Now when I check if the 5601 port is working, I get this from netstat:
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN

Shouldn't I now be able to access Kibana at 172.xx.xx.xx:5601 (the public IP I get from ifconfig on the machine)? But I do not, I get a "Connection Refused".

I can share any file you want me to, I've set 0.0.0.0 in kibana.yml by the way.

Hey @sami-t
I think you have found the private IP. usually 172 range is a private network ip range https://en.wikipedia.org/wiki/Private_network

I think you should check for that IP on the AWS console or using the CLI describe-instances https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html

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