Splunk Search

automatic lookups

friskyapple
Explorer

I've got 3 automatic lookups:

host::ORAC : LOOKUP-game title

game_titles id AS title_id OUTPUTNEW publisher_id AS publisher_id title AS game_title

host::ORAC : LOOKUP-game title idGames id AS game_id OUTPUTNEW title_id AS title_id
host::ORAC : LOOKUP-publisher namepublishers id AS publisher_id OUTPUTNEW name AS publisher

 

the title id one works fine, but the other two, which are based on the generated field from the automated lookup don't cause an error but don't create any new fields either. Are we not able to use fields created by the automatic lookup for further lookups?

Labels (1)
Tags (1)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

One last option you have to name your lookup definitions in the ASCII order they want to be executed. Not tested though.

for example: 

host::oracle-1 # this will be executed first

host::oracle-2 # this will be executed next

B50068E7-5E21-40B1-8808-517CD26C8217.png

 

 

 

 

————————————
If this helps, give a like below.
0 Karma

yeahnah
Motivator

Hi @friskyapple 

You are right and you're not able to use automatic lookups chained to further lookups, as an automatic lookup occurs at search time, i.e. the lookup field must exist in the results of your base search.

https://docs.splunk.com/Documentation/Splunk/8.0.5/Knowledge/Aboutlookupsandfieldactions#Automatic_l...

Couple of possible options:

1. Add the subsequent "lookup" commands into your search query, i.e. run manually

2. Create a new lookup that combines the 3 lookup files into 1 new lookup

Would depend on your use case what works best.

Hope this helps. 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...