<?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 Result that does not match an item in list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556354#M157990</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a search I would like a result that does NOT match an element in a list&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex source="mysource_*" earliest-30m&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to compare the sources against a list, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;("*one","*two","*three")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the search results, for instance, DON'T include events with the source "mysource_three" I would like a result that states this.&amp;nbsp; Ultimately, I'm looking to create an alert based on the query; if there are no events seen from some sources in the last 30 minutes.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 19:10:19 GMT</pubDate>
    <dc:creator>vschrodda</dc:creator>
    <dc:date>2021-06-18T19:10:19Z</dc:date>
    <item>
      <title>Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556354#M157990</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a search I would like a result that does NOT match an element in a list&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex source="mysource_*" earliest-30m&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to compare the sources against a list, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;("*one","*two","*three")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the search results, for instance, DON'T include events with the source "mysource_three" I would like a result that states this.&amp;nbsp; Ultimately, I'm looking to create an alert based on the query; if there are no events seen from some sources in the last 30 minutes.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 19:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556354#M157990</guid>
      <dc:creator>vschrodda</dc:creator>
      <dc:date>2021-06-18T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556357#M157991</link>
      <description>&lt;P&gt;Perhaps this will get you started.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex source="mysource_*" earliest-30m
| regex source!="mysource_(?:one|two|three)"&lt;/LI-CODE&gt;&lt;P&gt;If you get any results, then trigger an alert.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 19:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556357#M157991</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-18T19:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556359#M157992</link>
      <description>&lt;P&gt;This results in a 'source' that did not match an element in the list.&amp;nbsp; I can do this without issue.&amp;nbsp; I'm trying to determine which element(s) did &lt;STRONG&gt;not&lt;/STRONG&gt; have any matching events (there would be no matching events in the last 30 minutes)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 19:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556359#M157992</guid>
      <dc:creator>vschrodda</dc:creator>
      <dc:date>2021-06-18T19:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556362#M157994</link>
      <description>&lt;P&gt;I got lost with all the negatives in that.&amp;nbsp; What problem are you trying to solve?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 21:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556362#M157994</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-18T21:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556363#M157995</link>
      <description>&lt;P&gt;I'm simply trying to determine/list any elements ("*one","*two","*three")&amp;nbsp; did not have any matching events in given time frame&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 22:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556363#M157995</guid>
      <dc:creator>vschrodda</dc:creator>
      <dc:date>2021-06-18T22:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Result that does not match an item in list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556368#M157999</link>
      <description>&lt;P&gt;Figured out what I needed&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex source="mysource_*" earliest=-30m | stats count by source | table source | eval Found=1 | append [|inputlookup mylookup_table.csv | table source | eval Found=0] | stats max(Found) as Found by source | where Found=0&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 23:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Result-that-does-not-match-an-item-in-list/m-p/556368#M157999</guid>
      <dc:creator>vschrodda</dc:creator>
      <dc:date>2021-06-18T23:19:20Z</dc:date>
    </item>
  </channel>
</rss>

