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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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