<?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 can pass a date to search index to pull the incremental data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465887#M191763</link>
    <description>&lt;P&gt;Splunk does not keep anything like a record number, to allow you to track the last record pulled and continue from there. &lt;BR /&gt;
Since events can arrive well after the were generated, using the events time as the filter will cause you to miss events received late.&lt;/P&gt;

&lt;P&gt;Start=$End_Previous_Run$+1&lt;BR /&gt;
End=now()-5m&lt;/P&gt;

&lt;P&gt;Then using those timeframes in your splunk search:&lt;BR /&gt;
    index=* criteria _index_earliest=$Start _index_latest=$End&lt;/P&gt;

&lt;P&gt;Doing this should simulate a incremental pull of the data. &lt;/P&gt;

&lt;P&gt;The format of the date sent can be in epoch time, which I recommend:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/SearchTimeModifiers" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:57:37 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2020-09-30T01:57:37Z</dc:date>
    <item>
      <title>how can pass a date to search index to pull the incremental data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465886#M191762</link>
      <description>&lt;P&gt;i am trying to pull the data from splunk index using python and it triggers every 5 min. So i need to fetch the new data for the every run , nothing but an incremental data pull.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465886#M191762</guid>
      <dc:creator>nikilkatturi</dc:creator>
      <dc:date>2019-08-29T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can pass a date to search index to pull the incremental data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465887#M191763</link>
      <description>&lt;P&gt;Splunk does not keep anything like a record number, to allow you to track the last record pulled and continue from there. &lt;BR /&gt;
Since events can arrive well after the were generated, using the events time as the filter will cause you to miss events received late.&lt;/P&gt;

&lt;P&gt;Start=$End_Previous_Run$+1&lt;BR /&gt;
End=now()-5m&lt;/P&gt;

&lt;P&gt;Then using those timeframes in your splunk search:&lt;BR /&gt;
    index=* criteria _index_earliest=$Start _index_latest=$End&lt;/P&gt;

&lt;P&gt;Doing this should simulate a incremental pull of the data. &lt;/P&gt;

&lt;P&gt;The format of the date sent can be in epoch time, which I recommend:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/SearchTimeModifiers" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465887#M191763</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-30T01:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: how can pass a date to search index to pull the incremental data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465888#M191764</link>
      <description>&lt;P&gt;Thanks for the answer. In what format should i pass the date ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465888#M191764</guid>
      <dc:creator>nikilkatturi</dc:creator>
      <dc:date>2019-09-10T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can pass a date to search index to pull the incremental data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465889#M191765</link>
      <description>&lt;P&gt;I would use Epoch or Unix  time:&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Unix_time"&gt;https://en.wikipedia.org/wiki/Unix_time&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 16:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-pass-a-date-to-search-index-to-pull-the-incremental-data/m-p/465889#M191765</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-10T16:36:26Z</dc:date>
    </item>
  </channel>
</rss>

