Splunk Search

How to exclude combinations of values in lookup from search?

ilya
New Member

Hi, Team!

I have a rule:


index = example source = "Rule" | fields user, src_time, src_app, src, src_lat, src_long, src_city, src_country, dest_time, dest_app, dest, dest_lat, dest_long, dest_city, dest_country, distance, speed | stats count by dest, dest_app


And there is a lookup, in which the ip addresses and apps are indicated in two columns.

How can I exclude from the rule a bunch of ip and applications that are in the lookup?

 

Thank you for your time!

 

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

 

<<your search>> NOT ([ | inputlookup yourlookup.csv ]) 

I'm not sure the parentheses are necsssary but they won't hurt 😉

You might need to rename columns in the subsearch so they match field names from your search.

0 Karma
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 ...