All Apps and Add-ons

Why does the REST API Modular Input break polling after first successful GET?

rnavarro5
New Member

I have created several REST data inputs.
- All of them for fetching Application Status from the server using method(GET)

All are working perfectly when I click 'Save' button after setting the configuration and Re-starting the service (Splunkd)
There are a total of 16 APIs configured

The first Get API is being polled automatically according to polling interval for all 16 APIs. But, the second API is not being polled for any interval for 3 of the APIs.
I have checked every setting and they are correct.

These are the errors:

ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" HTTP Request Timeout error: HTTPSConnectionPool(host='xx.xxx.xxx.142', port=7xxx): Read timed out.
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" HTTP Request Timeout error: HTTPSConnectionPool(host='xx.xxx.xxx.146', port=7xxx): Read timed out.
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" HTTP Request Timeout error: HTTPSConnectionPool(host='xx.xxx.xxx.36', port=7xxx): Read timed out.
0 Karma

rnavarro5
New Member

Here is related error details:
ERROR AdminManager - The following required arguments are missing: activation_key.
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" Exception in thread Thread-1:
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" Traceback (most recent call last):
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\Python-2.7\Lib\threading.py", line 801, in bootstrap_inner
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" self.run()
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\Python-2.7\Lib\threading.py", line 754, in run
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" self.
target(self.args, **self.kwargs)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py", line 570, in do_run
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py", line 612, in checkParamUpdated
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" item.update(
{rest_name:current})
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\client.py", line 1904, in update
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" return super(Input, self).update(
kwargs)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\client.py", line 1069, in update
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" self.post(
*kwargs)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\client.py", line 929, in post
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" return super(Entity, self).post(path_segment, owner=owner, app=app, sharing=sharing, **query)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\client.py", line 739, in post
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" **query)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\binding.py", line 235, in wrapper
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" return request_fun(self, *args, **kwargs)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\binding.py", line 61, in new_f
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" val = f(*args, **kwargs)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\binding.py", line 648, in post
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" response = self.http.post(path, all_headers, **query)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\binding.py", line 1079, in post
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" return self.request(url, message)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" File "D:\Program Files\Splunk\etc\apps\rest_ta\bin\splunk_sdk-1.0.0-py2.7.egg\splunklib\binding.py", line 1099, in request
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" raise HTTPError(response)
ERROR ExecProcessor - message from "python "D:\Program Files\Splunk\etc\apps\rest_ta\bin\rest.py"" HTTPError: HTTP 400 Bad Request -- The following required arguments are missing: activation_key

0 Karma
Get Updates on the Splunk Community!

Introducing Ingest Actions: Filter, Mask, Route, Repeat

WATCH NOW Ingest Actions (IA) is the best new way to easily filter, mask and route your data in Splunk® ...

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...