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
SplunkTrust
SplunkTrust

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!

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 ...