Splunk Dev

Scripted Lookup Output and Configuring in Splunk

aaronnicoli
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

Returns:

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.

Aaron.

0 Karma

MarioM
Motivator

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...