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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...