<?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 Re: How do I make a search that displays all events in a lookup and alerts if any are missing? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435172#M174152</link>
    <description>&lt;P&gt;What is your current search?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2018 19:25:45 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-12-12T19:25:45Z</dc:date>
    <item>
      <title>How do I make a search that displays all events in a lookup and alerts if any are missing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435171#M174151</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;

&lt;P&gt;I need your help with the following search: &lt;/P&gt;

&lt;P&gt;I have a lookup file with a list of ids and account ID's&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;  | &lt;STRONG&gt;Account_ID&lt;/STRONG&gt;&lt;BR /&gt;
AAA | 111&lt;BR /&gt;
BBB | 222&lt;BR /&gt;
CCC | 333&lt;/P&gt;

&lt;P&gt;Every day, I have events that I can match with my lookup, using  &lt;STRONG&gt;ID&lt;/STRONG&gt; field.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt; | &lt;STRONG&gt;ID&lt;/STRONG&gt; &lt;BR /&gt;
2018-12-10 | AAA&lt;BR /&gt;
2018-12-10 | BBB&lt;BR /&gt;
2018-12-10 | CCC&lt;BR /&gt;
2018-12-11 | AAA&lt;BR /&gt;
2018-12-11 | BBB&lt;BR /&gt;
2018-12-11 | CCC &lt;STRONG&gt;&lt;EM&gt;(lets suppose this event is missing/does not exist)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
2018-12-12 | AAA&lt;BR /&gt;
2018-12-12 | BBB&lt;BR /&gt;
2018-12-12 | CCC&lt;/P&gt;

&lt;P&gt;What I want to see in my result is: &lt;STRONG&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;/STRONG&gt; events from my lookup that has existing events in the search, per day. If any is missing, an error should be displayed. &lt;/P&gt;

&lt;P&gt;Any idea about how can I achieve this?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt; | &lt;STRONG&gt;ID&lt;/STRONG&gt; | &lt;STRONG&gt;ACCOUNT_ID&lt;/STRONG&gt; |&lt;STRONG&gt;&lt;EM&gt;RESULT&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
2018-12-10 | AAA | OK&lt;BR /&gt;
2018-12-10 | BBB |  OK &lt;BR /&gt;
2018-12-10 | CCC | OK&lt;BR /&gt;
2018-12-11 | AAA | OK&lt;BR /&gt;
2018-12-11 | BBB | OK&lt;BR /&gt;
2018-12-11 | CCC | &lt;STRONG&gt;ERROR&lt;/STRONG&gt;&lt;BR /&gt;
2018-12-12 | AAA | OK&lt;BR /&gt;
2018-12-12 | BBB | OK&lt;BR /&gt;
2018-12-12 | CCC | OK&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 14:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435171#M174151</guid>
      <dc:creator>nuaraujo</dc:creator>
      <dc:date>2018-12-12T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search that displays all events in a lookup and alerts if any are missing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435172#M174152</link>
      <description>&lt;P&gt;What is your current search?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 19:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435172#M174152</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-12T19:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search that displays all events in a lookup and alerts if any are missing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435173#M174153</link>
      <description>&lt;P&gt;Try something like this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=my_index [| inputlookup account_id.csv 
| table ID Account_ID] by ID Account_ID
| append [| inputlookup account_id.csv | eval count = 0]
| stats max(count) as count by ID Account_ID
| where count=0
| eval status=case(match(Account_ID,"CCC"),"Account ID CCC is missing",
                   match(Account_ID,"AAA"),"Account ID AAA is missing")
| table index ID Account_ID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2018 22:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-that-displays-all-events-in-a-lookup-and/m-p/435173#M174153</guid>
      <dc:creator>muralikoppula</dc:creator>
      <dc:date>2018-12-12T22:27:31Z</dc:date>
    </item>
  </channel>
</rss>

