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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...