Because it's the server of my job and I can't open a port... or maybe I miss something...
Yes sure. If I try (from my computer)
curl http://servername.com/elastic
I got :
{
"name": "goes-search1",
"cluster_name": "goes-search",
"cluster_uuid": "PSbPv26KSVaoZXbaV7JAQw",
"version": {
"number": "7.3.0",
"build_flavor": "default",
"build_type": "tar",
"build_hash": "de777fa",
"build_date": "2019-07-24T18:30:11.767338Z",
"build_snapshot": false,
"lucene_version": "8.1.0",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "You Know, for Search"
}
But if I try (from my computer) :
curl -X GET "http://servername.com/elastic/_cat/indices/"
I got :
{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index []",
"resource.type": "index_expression",
"resource.id": "",
"index_uuid": "_na_",
"index": ""
}
],
"type": "index_not_found_exception",
"reason": "no such index []",
"resource.type": "index_expression",
"resource.id": "",
"index_uuid": "_na_",
"index": ""
},
"status": 404
}
But, if I make the same request on the server with the port, it works... (I have some indices)