Splunk Dev

Scripted Lookup Output and Configuring in Splunk

Path Finder

Hi all,

Everyone in my organization has a unique username, which I have extracted from my search as "anumber".
I want to construct an external lookup script to convert this "anumber" extraction into human names.

All of these anumbers are convertible via an AD lookup, which I have scripted.

This is basically what I want to achieve, in my fields I want to be able to see both anumber and humanname, for example:

anumber = "a00001"
humanname = "Michael Someone"

I have written a python script which works as follows...

./a0convert.py a00001


Someone, Michael

Now, two questions...

1) Is this script output okay, or does it need to be formatted differently...?

2) How do I now add this scripted lookup into splunk? (preferably with the GUI, what needs to be done under "Lookups")

Thanks in advance for any help you can provide.


0 Karma


Here it tells you how to Set up fields lookup based on an external command or script and there is example script.

0 Karma
Get Updates on the Splunk Community!

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...