HI,
I have done proxy configuration on Splunk add on for New Relic where my proxy setting and Account ID , API key all are corrected, log shows unable to connect to proxy as below -
2017-09-12 19:43:58,401 DEBUG pid=71556 tid=MainThread file=connectionpool.py:_new_conn:809 | Starting new HTTPS connection (4): api.newrelic.com
2017-09-12 19:44:08,417 ERROR pid=71556 tid=MainThread file=base_modinput.py:log_error:307 | Get error when collecting events.
Traceback (most recent call last):
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/modinput_wrapper/base_modinput.py", line 127, in stream_events
self.collect_events(ew)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/new_relic_account_input.py", line 70, in collect_events
input_module.collect_events(self, ew)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/input_module_new_relic_account_input.py", line 72, in collect_events
response = helper.send_http_request(url, "GET", headers=headers, parameters=parameters, payload=None, cookies=None, verify=True, cert=None, timeout=None, use_proxy=True)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/modinput_wrapper/base_modinput.py", line 476, in send_http_request
proxy_uri=self._get_proxy_uri() if use_proxy else None)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/splunk_aoblib/rest_helper.py", line 43, in send_http_request
return self.http_session.request(method, url, **requests_args)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/opt/splunk/etc/apps/Splunk_TA_New_Relic/bin/splunk_ta_new_relic/requests/adapters.py", line 485, in send
raise ProxyError(e, request=request)
ProxyError: HTTPSConnectionPool(host='api.newrelic.com', port=443): Max retries exceeded with url: /v2/applications.json (Caused by ProxyError('Cannot connect to proxy.', timeout('timed out',)))
↧