Splunk Search

How do I map a field from a lookup to a Splunk index?

Sidharda
Path Finder

Hello Splunkers,

I have a requirement to match a field from an index to a field in a lookup and then extract the rest of the lookup fields basing on the matched field.

For ex: I would like to match the time fields from lookup with a time field from an index and retrieve the rest of the lookup fields/fields in the index based on the matched time field.

Thanks in advance !!

0 Karma

Vijeta
Influencer

Suppose your lookup field is time, then your query would be as below. Make sure the name of time field is same in index and lookup, if its different then rename it to have a common name.

index=<yourindexname> | join time[|inputlookup <yourlookupname.csv> ]
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...