All Apps and Add-ons

How to dynamically call an REST API ?

haryoken
New Member

I have a database, which store the data of a phone call. Whenever a phone call comes, Database will be updated automatically.
I am also using an add-on "REST API Modular Input" to make a GET request with argument=phonenumber (retrieved from the DB above) to retrieve a "scraperScore" with JSON format in return.
Is it possible for the REST request to automatically made whenever a phone call come?

0 Karma

hhGA
Communicator

Hi,

This might be a bit overly complex but - in the absence of any other answers - here's an idea.

I would set up a Splunk alert which is fired for each new phone call record coming into Splunk. The script would query the REST API and dump (and format if needed) the results to a folder which is being monitored by Splunk.

A bash script containing a curl command would do the job.

Hope this helps.

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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 ...