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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...