<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can I consolidate multiple arbitrary strings into an 'include file' so I can filter based on all of them? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-consolidate-multiple-arbitrary-strings-into-an-include/m-p/290553#M55425</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;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? &lt;/P&gt;

&lt;P&gt;Examples I want to filter out:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt; "This fruit is rotten" &lt;/LI&gt;
&lt;LI&gt;"A blemish has this fruit" &lt;/LI&gt;
&lt;LI&gt;"Brown spots appear" "This&lt;/LI&gt;
&lt;LI&gt;"fruit smells like a banana, but is not a banana" &lt;/LI&gt;
&lt;LI&gt;"Smooshy, way too smooshy"&lt;/LI&gt;
&lt;LI&gt;"Hard like a rock"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Examples I still want to keep in:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"This is a rock, not fruit"&lt;/LI&gt;
&lt;LI&gt;"This fruit has metal embedded in it"&lt;/LI&gt;
&lt;LI&gt;"Mangled beyond recognition"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;My assumption is that I will have to create a search string which specifically 'NOTs' all of the  examples in the top list. &lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 21:28:44 GMT</pubDate>
    <dc:creator>dreeck</dc:creator>
    <dc:date>2017-08-15T21:28:44Z</dc:date>
    <item>
      <title>Can I consolidate multiple arbitrary strings into an 'include file' so I can filter based on all of them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-consolidate-multiple-arbitrary-strings-into-an-include/m-p/290553#M55425</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;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? &lt;/P&gt;

&lt;P&gt;Examples I want to filter out:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt; "This fruit is rotten" &lt;/LI&gt;
&lt;LI&gt;"A blemish has this fruit" &lt;/LI&gt;
&lt;LI&gt;"Brown spots appear" "This&lt;/LI&gt;
&lt;LI&gt;"fruit smells like a banana, but is not a banana" &lt;/LI&gt;
&lt;LI&gt;"Smooshy, way too smooshy"&lt;/LI&gt;
&lt;LI&gt;"Hard like a rock"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Examples I still want to keep in:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"This is a rock, not fruit"&lt;/LI&gt;
&lt;LI&gt;"This fruit has metal embedded in it"&lt;/LI&gt;
&lt;LI&gt;"Mangled beyond recognition"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;My assumption is that I will have to create a search string which specifically 'NOTs' all of the  examples in the top list. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 21:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-consolidate-multiple-arbitrary-strings-into-an-include/m-p/290553#M55425</guid>
      <dc:creator>dreeck</dc:creator>
      <dc:date>2017-08-15T21:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I consolidate multiple arbitrary strings into an 'include file' so I can filter based on all of them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-consolidate-multiple-arbitrary-strings-into-an-include/m-p/290554#M55426</link>
      <description>&lt;P&gt;You can do this with a subsearch:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchTutorial/Useasubsearch"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchTutorial/Useasubsearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;OR if you are on the latest version of Splunk, with the &lt;CODE&gt;IN&lt;/CODE&gt; operator (hooray for @richfez):&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.2/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.2/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 23:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-consolidate-multiple-arbitrary-strings-into-an-include/m-p/290554#M55426</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-15T23:56:08Z</dc:date>
    </item>
  </channel>
</rss>

