Getting Data In

Can I consolidate multiple arbitrary strings into an 'include file' so I can filter based on all of them?

dreeck
Path Finder

Greetings,

I'd like to remove some spurious errors from my application by filtering them out. Each error is distinct, and they all have a common format. As per usual, my application deals with fruit. How can I filter out the following 7 errors without having to make each one a literal string?

Examples I want to filter out:

  • "This fruit is rotten"
  • "A blemish has this fruit"
  • "Brown spots appear" "This
  • "fruit smells like a banana, but is not a banana"
  • "Smooshy, way too smooshy"
  • "Hard like a rock"

Examples I still want to keep in:

  • "This is a rock, not fruit"
  • "This fruit has metal embedded in it"
  • "Mangled beyond recognition"

My assumption is that I will have to create a search string which specifically 'NOTs' all of the examples in the top list.

0 Karma
1 Solution

woodcock
Esteemed Legend
0 Karma

woodcock
Esteemed Legend

You can do this with a subsearch:
https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchTutorial/Useasubsearch

OR if you are on the latest version of Splunk, with the IN operator (hooray for @richfez):
http://docs.splunk.com/Documentation/Splunk/6.6.2/SearchReference/ConditionalFunctions#in.28VALUE-LI...

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...