Splunk Search

can i create look up for eventtypes ?

rakesh_498115
Motivator

Hi .

I have using the different eventtypes for my search query like this ..

1.et_Accepted
2.et_Rejected
3.et_Exception

Now i have given in my lookup table like this..

eventtype,Name

et_Accepted Accepted
et_Rejected Rejected
et_Exception Exception

Now when run the query like this ...

sourcetype="A" | top Name

its not giving me the output..

Please Help !

Tags (2)

gkanapathy
Splunk Employee
Splunk Employee

No you can not. Or rather, you can, but the lookup must be explicitly specified with the lookup search command. This is because eventtypes are assigned after automatic lookups are run. You can work around this with:

sourcetype=A | lookup mylookup eventtype OUTPUT Name | top Name
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 ...