<?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 to find a list of serial numbers not reported in 7 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199948#M187538</link>
    <description>&lt;P&gt;Add your serial numbers as a static input file, then create a search to create an outer join from the input file and your search string to return the serial numbers NOT seen in the last 7 days. If your serial number list is dynamic this will not work (you haven't mentioned it changes so assume is static).&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 16:23:43 GMT</pubDate>
    <dc:creator>LewisWheeler</dc:creator>
    <dc:date>2016-02-10T16:23:43Z</dc:date>
    <item>
      <title>How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199947#M187537</link>
      <description>&lt;P&gt;I need to find list of serial numbers that have been extracted as a field value where they have not been seen in over 7 days.&lt;BR /&gt;
Sometimes our systems stop reporting to the network share and we want to report on this. &lt;/P&gt;

&lt;P&gt;This is like an opposite of the normal search of "show me 7 days worth of logs" it's complicated because you have to know what has already been seen to know what's now missing. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199947#M187537</guid>
      <dc:creator>arrowecssupport</dc:creator>
      <dc:date>2016-02-10T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199948#M187538</link>
      <description>&lt;P&gt;Add your serial numbers as a static input file, then create a search to create an outer join from the input file and your search string to return the serial numbers NOT seen in the last 7 days. If your serial number list is dynamic this will not work (you haven't mentioned it changes so assume is static).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199948#M187538</guid>
      <dc:creator>LewisWheeler</dc:creator>
      <dc:date>2016-02-10T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199949#M187539</link>
      <description>&lt;P&gt;You could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats latest(_time) AS latest_time by serial_number | eval seven_days_ago=now()-604800 | where latest_time &amp;gt; seven_days_ago
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199949#M187539</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-02-10T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199950#M187540</link>
      <description>&lt;P&gt;The best approach here will be to have a lookup table file which will get updated daily to list all serial numbers reported yesterday with yesterday's date. Once the lookup is getting updated daily, you can just query the latest date on the lookup to see which serial numbers are not reporting for 7 days.&lt;/P&gt;

&lt;P&gt;Schedule search to run daily:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search:     
    your base search | stats max(_time) as report_date by serial_number | append [| inputlookup serial_numbers.csv ] | stats max(report_date) as report_date by serial_number | outputlookup serial_numbers.csv


Start time: -1d@d    Finish time:-  @d

Cron:  10 02 * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can backfill above search for say 15 days or 30 days.&lt;/P&gt;

&lt;P&gt;Your alert to find serial numbers not reported for 7 days.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup serial_numbers.csv | eval age=now()-report_date | where age&amp;gt;7*86400
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199950#M187540</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-10T16:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199951#M187541</link>
      <description>&lt;P&gt;.....thanks for the help. It is dynamic sorry &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199951#M187541</guid>
      <dc:creator>arrowecssupport</dc:creator>
      <dc:date>2016-02-10T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a list of serial numbers not reported in 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199952#M187542</link>
      <description>&lt;P&gt;I'd go with @ctaf answer then - if you run that over the past &lt;STRONG&gt;8&lt;/STRONG&gt; days and as an alert every day it'll trigger whenever its greater than 7 days although important to note it'll only trigger once per serial number, the next day it won't be able to alert on the serial number which hasn't appeared for 9 days. This is the main limitation of a time orientated search with dynamic checks like this in my opinion. I've used something similar to track forwarders going offline successfully, but only reports once then stops.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-a-list-of-serial-numbers-not-reported-in-7-days/m-p/199952#M187542</guid>
      <dc:creator>LewisWheeler</dc:creator>
      <dc:date>2016-02-10T16:39:19Z</dc:date>
    </item>
  </channel>
</rss>

