Splunk Search

How can we only see results when they are NOT found?

jtitus3
Explorer

I have a large CSV lookup table operational and working well but would like to run a search on my data that only shows values that are NOT in the table. Any ideas?
If no result is found, the default is “Definition Not defined”.
Thank you

Tags (4)
0 Karma

jtitus3
Explorer

After doing more research, what I really need is:
|stats count by Events |lookup EventList EC AS Events OUTPUTNEW Result AS MSG| (I only want MSG=Definition Not Defined)

0 Karma

somesoni2
Revered Legend

Generally you could run a subsearch with your CSV lookup table to filter your indexed data (e.g. index=foo sourcetype=bar NOT [| inputlookup yourLookup.csv | table field1 field1.. | format]). With little information in the question about your lookup table, your indexed data search and their relationship, I would suggest give something like above a try. Providing more information in your question would yield you better suggestion from the community.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...