Splunk Search

Lookup Script - REST API Calls from result set

lpolo
Motivator

I have the following result set:

seed
rovi$7389938
rovi$18133562
rovi$12759261

From this result set I need to make a REST API call for each row of the result set.

REST API Call:

http://rovi.com:8080/rex/select/?q=ids:seed&version=2.2&start=0&rows=10&indent=on&fl=title

For this result set example I have 3 REST API calls:

http://rovi.com:8080/rex/select/?q=ids:rovi$7389938&version=2.2&start=0&rows=10&indent=on&fl=title
http://rovi:8080/rex/select/?q=ids:rovi$18133562&version=2.2&start=0&rows=10&indent=on&fl=title
http://rovi:8080/rex/select/?q=ids:rovi$12759261&version=2.2&start=0&rows=10&indent=on&fl=title

So, the final result will be:

title seed
Parking Wars rovi$7389938
Staunton Hill rovi$18133562
Deadline rovi$12759261

Is there any particular document that I can read so I can integrate my script in Splunk?

Regards,
Lp

Tags (1)
0 Karma

lpolo
Motivator
0 Karma

lpolo
Motivator

It partially solve my problem. I had to use a script look up.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...