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!

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...