Splunk Search

External lookup not working...

responsys_cm
Builder

I have a scripted input that takes the "hash" field as an input and outputs JSON. Works like:

python virusTotal.py -fr 1a22e0b7ae19143ec099af972c6a116c244a8cb226c62d0c8bcfa2a269ce7e3c

Output:

New Virus Total instance
**** VIRUS API GO ****

{"response_code": 0, "resource": "1a22e0b7ae19143ec099af972c6a116c244a8cb226c62d0c8bcfa2a269ce7e3c", "verbose_msg": "The requested resource is not among the finished, queued or pending scans"}

The entry in transforms.conf is:

[virustotal_hash_lookup]

external_cmd = virusTotal.py -fr hash

fields_list = hash,result

I run it in Splunk like:

| lookup virustotal_hash_lookup hash OUTPUT result

But the result field is always empty... I don't see any errors when it runs...

Thx.

Craig

Tags (2)
0 Karma

Ayn
Legend

Dynamic lookups need both input and output to be in CSV format, so it seems to me you're going about this the wrong way. http://docs.splunk.com/Documentation/Splunk/5.0.3/Knowledge/Addfieldsfromexternaldatasources

0 Karma
Get Updates on the Splunk Community!

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...