I am using X-Pack with Elasticsearch 5.2.2.
The following is my HTTP input definition:
"input": {
"http": {
"request": {
"host": "localhost",
"port": 8500,
"scheme": "http",
"method": "get",
"path": "/v1/catalog/service/elasticsearch"
}
}
}
The payload that I get after performing /_execute
on the watcher:
{
"_headers": {
"x-consul-lastcontact": [
"0"
],
"date": [
"Thu, 20 Apr 2017 05:00:39 GMT"
],
"content-length": [
"1159"
],
"x-consul-index": [
"20247249"
],
"content-type": [
"application/json"
],
"x-consul-knownleader": [
"true"
]
},
"_status_code": 200
}}
It is observed that payload does not contain the response content, however the content-length appears to be 1159
. The request returns values when done with CURL on all
elasticsearch nodes. In fact, I even tried the dns name of the host instead of localhost
, and I get the same results. Is there something I am missing here?