Splunk Search

Can we use eventtypes defined in splunk in lookups?

ashwinipatil198
Explorer

Hi,

I have defined an eventtype in Splunk for a particular search. I defined a lookup which had this eventtype as a key value to retrieve data. Based on this eventtype, i was fetching error_type and error_message from the lookup file. But i was not able to fetch the same. Please suggest.

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Should work. Say you have a lookup like this:

eventtype,error_type,error_message
foo,"some error","some message"

Then this search should yield results:

eventtype=foo | lookup eventtype_lookup eventtype OUTPUT error_type error_message | table _time eventtype error_type error_message
0 Karma

somesoni2
Revered Legend

Could you please provide more details on how you're using the eventtype in lookup? Possible a sample search that you wrote and didn't work?

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...