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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Using the Splunk Threat Research Team’s Latest Security Content

REGISTER HERE Tech Talk | Security Edition Did you know the Splunk Threat Research Team regularly releases ...

SplunkTrust | 2024 SplunkTrust Application Period is Open!

It's that time again, folks! That's right, the application/nomination period for the 2024 SplunkTrust is ...