Starting from v2.0 Elasticsearch is listening only on localhost by default, but I\'d like to make request outside localhost.
For example, a request like this is allo
In the remote machine where elasticsearch is installed just add the below two configurations in /etc/elasticsearch/elasticsearch.yml
/etc/elasticsearch/elasticsearch.yml
network.host: xx.xx.xx.xx #remote elastic machine's internal IP discovery.type: single-node
Tested on elasticsearch 6.8.3 and AWS EC2 Linux AMI as remote machine