2

I have elastic search running on my AWS Server, I follow this tutorial: And, when I execute this on my server:

$ curl localhost:9200/_cluster/health?pretty

And returns the correct results.

But, when I use the complete IP provider by Amazon, I get the error:

This site can’t be reached

52.33.201.250 refused to connect.

Also, my configuration is: enter image description here

What other thing I need do to configure it?

Benjamin RD
  • 11,516
  • 14
  • 87
  • 157
  • That looks correct I think. Are you sure that security group is assigned to your ES server? EDIT to say, check that your ES config allows remote connections – Andy Oct 03 '17 at 19:49
  • 100% sure @Andy – Benjamin RD Oct 03 '17 at 19:52
  • Have you tried the suggestions in https://stackoverflow.com/questions/31677563/connection-refused-error-on-elastic-search ? – Andy Oct 03 '17 at 19:54

1 Answers1

1

You can try this:

In your "/etc/elasticsearch/elasticsearch.yml"

Set your public or private ip according to your needs: network.host: your_ip

Leonardo Cabré
  • 1,165
  • 1
  • 11
  • 17