Splunk Search

How to query an automatic lookup

luna
Explorer

Hi Guys,

 

How can I query an automatic lookup? Now, this is not the fields created through  an automatic lookup, but the name given to the automatic lookup.

 

my automatic lookup is src_top_sales_by_model

I have tried:

index=blah model=* | stats values(src_top_sales_by_model) 

the dilemma, I have two different automatic lookups and they both have the same field name but different values

so I was thinking of just querying the automatic lookups names given to then find the values. 

Is this even possible?

 

Labels (3)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @luna,

Unfortunately you cannot get the lookup name that outputs values. You can edit your automatic lookup definitions to output different fieldnames to understand which one hit. 

If your lookup files has the same fields as output, you can alias them on automatic lookup definition using AS setting.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @luna,

Unfortunately you cannot get the lookup name that outputs values. You can edit your automatic lookup definitions to output different fieldnames to understand which one hit. 

If your lookup files has the same fields as output, you can alias them on automatic lookup definition using AS setting.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...