<?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 Finding Historical Gaps in Data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-Historical-Gaps-in-Data/m-p/394884#M173740</link>
    <description>&lt;P&gt;I have an existing search that shows devices that currently are not logging i.e. gaps  however, I didn't have an alert to fire if a new device was discovered.  My question is how can I go back and see the actual gaps on devices from the past that are currently logging presently?&lt;/P&gt;

&lt;P&gt;For example I know I had gaps from 12.30.18 up to 1.6.19 .. So how can I see or pull this historically?&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;| metadata index=* type=hosts | where host="xxx.yyy.com" | eval gap = now()-lastTime | sort gap d | eval gap=tostring(gap, "duration") | convert ctime(lastTime) | fields host,lastTime,gap |  rename gap as "Gap Duration (days+HH:MM:SS)" | rename lastTime AS "Last Time Event Was Seen By Data Source" | rename host AS "Data Source"&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 19:07:17 GMT</pubDate>
    <dc:creator>neely_hpe</dc:creator>
    <dc:date>2019-01-09T19:07:17Z</dc:date>
    <item>
      <title>Finding Historical Gaps in Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-Historical-Gaps-in-Data/m-p/394884#M173740</link>
      <description>&lt;P&gt;I have an existing search that shows devices that currently are not logging i.e. gaps  however, I didn't have an alert to fire if a new device was discovered.  My question is how can I go back and see the actual gaps on devices from the past that are currently logging presently?&lt;/P&gt;

&lt;P&gt;For example I know I had gaps from 12.30.18 up to 1.6.19 .. So how can I see or pull this historically?&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;| metadata index=* type=hosts | where host="xxx.yyy.com" | eval gap = now()-lastTime | sort gap d | eval gap=tostring(gap, "duration") | convert ctime(lastTime) | fields host,lastTime,gap |  rename gap as "Gap Duration (days+HH:MM:SS)" | rename lastTime AS "Last Time Event Was Seen By Data Source" | rename host AS "Data Source"&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 19:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-Historical-Gaps-in-Data/m-p/394884#M173740</guid>
      <dc:creator>neely_hpe</dc:creator>
      <dc:date>2019-01-09T19:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Historical Gaps in Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-Historical-Gaps-in-Data/m-p/394885#M173741</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I am not sure I get this right, you can always use&lt;CODE&gt;| timechart count&lt;/CODE&gt; to see if there are gaps in your logs.&lt;/P&gt;

&lt;P&gt;Since these gaps can be origined by delayed sending of your logs, your might be interessed in a delta as well.&lt;/P&gt;

&lt;P&gt;You can get a delta with &lt;CODE&gt;| eval delta= _indextime - _time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 07:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-Historical-Gaps-in-Data/m-p/394885#M173741</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-15T07:41:25Z</dc:date>
    </item>
  </channel>
</rss>

