Splunk Search

Use Lookup to Add MetaData to Results

aapittts
Path Finder

If I have a lookup table with ID's and descriptions, is it possible to use the lookup table to add the corresponding descriptions to the ID's in search results?

I thought this was the purpose of the lookup command but I'm not getting anywhere using it.

If I have a list of codes, how to I use a lookup table to match the codes with the descriptions and output the code and description to the search results?

Lookup:

code,desc
1234,lorem ipsum
4567,lorem ipsum

desc is not a field in my transforms.conf. Does that matter?

Tags (2)
0 Karma
1 Solution

aapittts
Path Finder

Hopefully this helps another newb such as myself.

Search term is: | lookup TableName LookupField as LocalField

LookupField = Field in LookupTable

LocalField = Field in Splunk

View solution in original post

0 Karma

aapittts
Path Finder

Hopefully this helps another newb such as myself.

Search term is: | lookup TableName LookupField as LocalField

LookupField = Field in LookupTable

LocalField = Field in Splunk

0 Karma

Ayn
Legend

That is definitely how you can use lookups. You should provide more information on your scenario and what you're trying so we can help you troubleshoot your issue.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...