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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...