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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...