Splunk Search

When using an API to enrich my data, how can I control how many requests Splunk sends to my external lookup script?

rharrisssi
Path Finder

When using an API to enrich my data, for example running MD5 hashes in my logs against VirusTotal's API, how can I control how many requests Splunk sends to my external lookup script? There are often maximum limits on APIs provided, and its most efficient to take advantage and send in bulk since it will be going off-box.

Tags (4)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Splunk will send all the requests to your external lookup script because Splunk can't know what the script is doing.

However, the script can be smart about what it sends off and what it answers itself from a cache.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I see. While I'm not so sure about lookups, custom search commands are by default configured to receive up to 50000 rows per invocation: http://docs.splunk.com/Documentation/Splunk/6.2.3/Admin/Commandsconf

If there's no way to tell this to a lookup then you could at least convert your lookup script.

0 Karma

rharrisssi
Path Finder

From logs created by my script, Splunk is sending the hash one at a time to the script. I have caching implemented with the script so it doesn't use the API for something its received an answer for in the last few hours.

What I'm after is configuring Splunk to send more than one hash at a time to the script as it goes down the list.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...