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
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...