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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...