I have deployed elasticsearch(7.3 version) service on my EC2 instance.
- After installing when I did
curl localhost:9200
it gave me correct response but when I accessed the same service by hitting request:http://{{public-ip-address-ec2-instance}}:9200
It is giving error as :
This site can’t be reached : {{public-ip-address-ec2-instance}} connection refused.
- I have configured security group of EC2 instance by allowing inbound traffic on custom TCP which is set to default elastic search port
9200
and is open to0.0.0.0/0
.
Currently I haven't modified elasticsearch.yml
and it has default values only.
So how can I access elasticsearch through public IP of EC2 instance? Do I need to make any changes in elasticsearch configuration file?
telnet
ornc
to the specific IP on 9200 and verify the results? – Munavir Chavodynetwork.host
in yourelasticsearch.yml
config file. This might help – Val