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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...