Having an issue with "/_nodes/stats?all=true

I have installed Elasticsearch 6.7.0

i am having an issue when i have configured datadog agent, it's failing to connect to elasticsearch.

02:32 PM | 2019-03-27 18:27:42 UTC | ERROR | dd.collector | checks.elastic(init.py:829) | Check 'elastic' instance #0 failed
Traceback (most recent call last):
File "/opt/datadog-agent/agent/checks/init.py", line 812, in run
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/elastic/elastic.py", line 55, in check
stats_data = self._get_data(stats_url, config)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/elastic/elastic.py", line 224, in _get_data
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPSConnectionPool(host='test1-elastic.net', port=9200): Max retries exceeded with url: /_nodes/stats?all=true (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd7bb60c4d0>, 'Connection to test1-elastic.net timed out. (connect timeout=5)'))

when i hit URL: /nodes/stats? it's working, if we include URL: /nodes/stats?all=true it's failing, please suggest me, thanks.

I must admit I've no idea why this would fail to connect, but even if it did connect I don't think it would work:

GET /_nodes/stats?all=true

# ----------------------------------------
# Response:
# 400 Bad Request
# {
#   "status": 400,
#   "error": {
#     "reason": "request [/_nodes/stats] contains unrecognized parameter: [all]",
#     "root_cause": [
#       {
#         "reason": "request [/_nodes/stats] contains unrecognized parameter: [all]",
#         "type": "illegal_argument_exception"
#       }
#     ],
#     "type": "illegal_argument_exception"
#   }
# }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.