Unable to access EC2 ElasticSearch7.5.2 Server using EC2 Public IP on local machine

Hi @shaheryar.malik.
please check as below , it may be helpful to you!
We can’t access this elastic search from remote machine as below image :

For localhost or private IP-
image
For VM Public IP :-1:
image

we need to make as IP based elastic search for access through the network


Edit hosts file as below :
$nano /etc/hosts

Just map IGIVM with VM Public IP address as below :

Save this file .
image
Stop elastic search and restart It as below image:-
Command :-

$systemctl stop elasticsearch.searvice

$ systemctl start elasticsearch.searvice

$ systemctl status elasticsearch.searvice

NOW WE CAN SEE ELASTIC SEARCH IS UP AND RUNNING.
image
NOW we can access this elastic search from remote machine
image

Thanks
HadoopHelp

2 Likes