All Apps and Add-ons

Data input - Automation

masalern
Observer

Hi,

I'm injecting data from a SDWAN platform into splunk enterprice 7.3.2 via Rest API. I'm using the Add-on builder to build our HTTP requests and It works great, however there are some taks that I would like to automate.
The SDWAN platform allows us to run SpeedTest to the devices registered and then collect the results using the test ID.
In the response from the HTTP post sent to the server to run the speed test, we get the ID in the response:
"created_at": "2019-11-18T18:25:13.038236+00:00",
"id": "1462286",
"progress": null,
"resource_uri": "https://www.cradlepointecm.com/api/v2/speed_test/1462286/",
"results": null,
"state": "created",
"updated_at": "2019-11-18T18:25:13.038271+00:00"

Then, I need to send a new HTTP get including the id in the header to get the results:

https://www.cradlepointecm.com/api/v2/speed_test/1462286/

In the add-on builder you can add the variables to the HTTP header, but I dont know if it is possbile to update the var using the latest HTTP post id.

https://www.cradlepointecm.com/api/v2/speed_test/${upload_id}/

Thanks in advance,
Marco Salerno

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Currently Add-on Builder REST input can only send ONE request. Please use Python input which is able to do anything you want. There are many helper functions to help you to send REST request by one line of code. You can try to create one and see some code templates in AoB UI.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...