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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...