<?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: Pulling 1-day old records in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467690#M131656</link>
    <description>&lt;P&gt;Are you trying to identify latency between the events getting generated and the time that they are indexed? &lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 05:56:39 GMT</pubDate>
    <dc:creator>KARANMALHOTRA</dc:creator>
    <dc:date>2019-09-04T05:56:39Z</dc:date>
    <item>
      <title>Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467686#M131652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Let say I have field lastTime (sample value lastTime =  09/01/2019 11:52:31). There are records with lastTime reported &amp;gt; 1 day (24 hours) that I'd like to set the alert on. Is there a way I can pull these records?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 18:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467686#M131652</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2019-09-03T18:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467687#M131653</link>
      <description>&lt;P&gt;Is lastTime the same as _time?  Are you looking for lastTime values more than 24 hours in the past or in the future?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 21:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467687#M131653</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-03T21:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467688#M131654</link>
      <description>&lt;P&gt;Thanks for helping. lastTime is a variable with value like 08/26/2019 11:20:01, but yes it can be the same as _time.&lt;BR /&gt;
I mean 24 hr to the future. Let say: latencyTime = (now - lastTime) if latencyTime &amp;gt;24 hours, then fire the alert.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 21:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467688#M131654</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2019-09-03T21:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467689#M131655</link>
      <description>&lt;P&gt;So to clarify further, lastTime &lt;EM&gt;can&lt;/EM&gt; be the same as _time, but not always? &lt;BR /&gt;
You say 24 hours to the future, but your example SPL computes 24 hours in the past.  Which is correct?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 23:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467689#M131655</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-03T23:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467690#M131656</link>
      <description>&lt;P&gt;Are you trying to identify latency between the events getting generated and the time that they are indexed? &lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 05:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467690#M131656</guid>
      <dc:creator>KARANMALHOTRA</dc:creator>
      <dc:date>2019-09-04T05:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467691#M131657</link>
      <description>&lt;P&gt;Hi richgalloway - thanks again for giving help. I found an answer to another question and I think it's helpful:&lt;BR /&gt;
 ... | eval ddate_epoch = strptime(ddate, "%Y-%m-%d %H:%M:%S") | eval diff_seconds = now() - ddate_epoch | eval diff_days = diff_seconds / 86400&lt;/P&gt;

&lt;P&gt;In my case, if diff_days&amp;gt;1 triggering an alert.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467691#M131657</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-09-30T02:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467692#M131658</link>
      <description>&lt;P&gt;If your problem is resolved, please accept the answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 19:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467692#M131658</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-04T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling 1-day old records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467693#M131659</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 19:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pulling-1-day-old-records/m-p/467693#M131659</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2019-09-04T19:34:06Z</dc:date>
    </item>
  </channel>
</rss>

