Splunk Enterprise

add lookup data into dashboard panels

selvam_sekar
Path Finder

Hi,

I have requirement to add the lookup data into dashboard panels. Please could you review and help on this?

how to add the lookup data into the spl query to display region fullname?

SPl:

  index=abc sourcetype=a.1 source=a.2  | search region IN (a,b,c,d,e,f,g,h,i,j,l,m) | chart count by region

Lookup data: look file name regiondetails.csv

AliasName
aamerica
bbrazil
ccanada
ddubai
Labels (2)
Tags (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
0 Karma

selvam_sekar
Path Finder

@isoutamo I have gone through the document link but i  am not able to fix the issue.

 

I am trying to bring the fullname of the region from lookup into search results.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

After you have define those lookups as described on those links you could use it as

| makeresults
| eval foo="a"
``` Previous lines generate example data and should replaced your real search ```
| lookup regiondetails Alias as foo

Above example gives you a result like

Name	_time	foo
america	2024-01-05 11:44:56	a

If you want to do it without lookup command you must define automatic lookup. You find that from previous links. 

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...