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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...