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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...