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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...