<?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 REST API - Search  - Always searches for &amp;quot;All Time&amp;quot; and ignores earliest in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-Always-searches-for-quot-All-Time-quot-and/m-p/462796#M79866</link>
    <description>&lt;P&gt;I'm calling REST to submit a job search and always it considers &lt;STRONG&gt;All Time&lt;/STRONG&gt; and ignores the &lt;STRONG&gt;earliest&lt;/STRONG&gt;.. &lt;/P&gt;

&lt;P&gt;Is there anything wrong in the search query i am posting? &lt;/P&gt;

&lt;P&gt;search=search "index=center host=center* AND sourcetype=abf:afz.log "DebugLogSubmission" "time" &lt;STRONG&gt;earliest=-24h@h&lt;/STRONG&gt; | rex  time=(?[\d]+) |table _time mytime | head 100"&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 06:11:37 GMT</pubDate>
    <dc:creator>kvmadan</dc:creator>
    <dc:date>2020-02-06T06:11:37Z</dc:date>
    <item>
      <title>REST API - Search  - Always searches for "All Time" and ignores earliest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-Always-searches-for-quot-All-Time-quot-and/m-p/462796#M79866</link>
      <description>&lt;P&gt;I'm calling REST to submit a job search and always it considers &lt;STRONG&gt;All Time&lt;/STRONG&gt; and ignores the &lt;STRONG&gt;earliest&lt;/STRONG&gt;.. &lt;/P&gt;

&lt;P&gt;Is there anything wrong in the search query i am posting? &lt;/P&gt;

&lt;P&gt;search=search "index=center host=center* AND sourcetype=abf:afz.log "DebugLogSubmission" "time" &lt;STRONG&gt;earliest=-24h@h&lt;/STRONG&gt; | rex  time=(?[\d]+) |table _time mytime | head 100"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 06:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-Always-searches-for-quot-All-Time-quot-and/m-p/462796#M79866</guid>
      <dc:creator>kvmadan</dc:creator>
      <dc:date>2020-02-06T06:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - Search  - Always searches for "All Time" and ignores earliest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-Always-searches-for-quot-All-Time-quot-and/m-p/462797#M79867</link>
      <description>&lt;P&gt;Straight from the docs....&lt;/P&gt;

&lt;P&gt;You need to send the earliestTime param:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTsearch#search.2Fjobs"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTsearch#search.2Fjobs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-Always-searches-for-quot-All-Time-quot-and/m-p/462797#M79867</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-02-06T07:53:48Z</dc:date>
    </item>
  </channel>
</rss>

