<?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 How can I report on only current data in a file being refreshed every minute? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343079#M101613</link>
    <description>&lt;P&gt;A file is being referenced, that is updated every minute.&lt;BR /&gt;
I would like to report on data that &lt;STRONG&gt;only exists in that file for the last minute&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Background:  The data in the file is for  outage events.  When an outage occurs, the data has the estimated restoration time.&lt;BR /&gt;
If the outage is restored, the data no longer exists on this file. &lt;/P&gt;

&lt;P&gt;Right now I am I am keying off of the restoration value in the file.  Using this logic is not accurate, because in most cases the outage has been restored before the estimated restoration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval completed_time=strptime(ert, "%Y-%m-%dT%H:%M:%S") | eval now=now() | where completed_time&amp;gt;now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is happening is the data does not fall off the dashboard till the restoration time is past present time.&lt;/P&gt;

&lt;P&gt;How can I report only on data that exists in this file?  Again the file is refreshed every minute with only current outage data.&lt;/P&gt;

&lt;P&gt;Appreciate your time and thoughts.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 19:55:31 GMT</pubDate>
    <dc:creator>bcarnot</dc:creator>
    <dc:date>2017-03-08T19:55:31Z</dc:date>
    <item>
      <title>How can I report on only current data in a file being refreshed every minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343079#M101613</link>
      <description>&lt;P&gt;A file is being referenced, that is updated every minute.&lt;BR /&gt;
I would like to report on data that &lt;STRONG&gt;only exists in that file for the last minute&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Background:  The data in the file is for  outage events.  When an outage occurs, the data has the estimated restoration time.&lt;BR /&gt;
If the outage is restored, the data no longer exists on this file. &lt;/P&gt;

&lt;P&gt;Right now I am I am keying off of the restoration value in the file.  Using this logic is not accurate, because in most cases the outage has been restored before the estimated restoration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval completed_time=strptime(ert, "%Y-%m-%dT%H:%M:%S") | eval now=now() | where completed_time&amp;gt;now
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is happening is the data does not fall off the dashboard till the restoration time is past present time.&lt;/P&gt;

&lt;P&gt;How can I report only on data that exists in this file?  Again the file is refreshed every minute with only current outage data.&lt;/P&gt;

&lt;P&gt;Appreciate your time and thoughts.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 19:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343079#M101613</guid>
      <dc:creator>bcarnot</dc:creator>
      <dc:date>2017-03-08T19:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I report on only current data in a file being refreshed every minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343080#M101614</link>
      <description>&lt;P&gt;You can use the _index_earliest and _index_latest relative timerange specifier to only use the data indexed in last minutes. Based on how the timestamp appears on your data, you may need to use a large time range period so that all data is included. Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search _index_earliest=-1m@m _index_latest=@m | rest of the search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See more info on timerange modifier here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/SearchTimeModifiers" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343080#M101614</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I report on only current data in a file being refreshed every minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343081#M101615</link>
      <description>&lt;P&gt;This works perfect and thank you for the link.&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-report-on-only-current-data-in-a-file-being-refreshed/m-p/343081#M101615</guid>
      <dc:creator>bcarnot</dc:creator>
      <dc:date>2017-03-09T17:15:27Z</dc:date>
    </item>
  </channel>
</rss>

