Could Not index event to ElasticSearch

curl -X Get "XXX.XXX.XXX.XXX:9200 /_cluster/stats/=human&pretty"

Where the XXX's are the ip of the Elasticsearch server
localhost does not work or configured.