<?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: earliest_time not working in REST post data, but working in search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348289#M63943</link>
    <description>&lt;P&gt;Passing the values in the search SPL itself overrides the &lt;CODE&gt;earliest=&lt;/CODE&gt; parameter from the interface, so that doesn't tell you why you are having the interface issue.   &lt;/P&gt;

&lt;P&gt;I suspect it is an issue with quoting.  Try setting the value to... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;amp;quot;09/24/2017:10:00:00&amp;amp;quot;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Sep 2017 22:08:47 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-25T22:08:47Z</dc:date>
    <item>
      <title>earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348288#M63942</link>
      <description>&lt;P&gt;I am sending a POST request to Splunk REST 'services/search/jobs' endpoint.&lt;/P&gt;

&lt;P&gt;If I submit with 'earliest_time' parameter as a relative string like -2d, it works fine. But if I use an absolute date-time string like "9/24/2017:10:00:00", it comes back with 0 results.&lt;/P&gt;

&lt;P&gt;Instead, if I don't pass earliest_time parameter, and embed the earliest in the query itself like "earliest='9/24/2017:10:00:00'", it works fine.&lt;/P&gt;

&lt;P&gt;Is this a known bug? Or am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 21:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348288#M63942</guid>
      <dc:creator>shikhanshu</dc:creator>
      <dc:date>2017-09-25T21:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348289#M63943</link>
      <description>&lt;P&gt;Passing the values in the search SPL itself overrides the &lt;CODE&gt;earliest=&lt;/CODE&gt; parameter from the interface, so that doesn't tell you why you are having the interface issue.   &lt;/P&gt;

&lt;P&gt;I suspect it is an issue with quoting.  Try setting the value to... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;amp;quot;09/24/2017:10:00:00&amp;amp;quot;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 22:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348289#M63943</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T22:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348290#M63944</link>
      <description>&lt;P&gt;I was not sending 'earliest' in the SPL query earlier. I was sending 'earliest_time' parameter from the interface. Since latter did not work for absolute datetime string, I now switched to 'earliest' in SPL itself which works.&lt;/P&gt;

&lt;P&gt;I went back to sending 'earliest_time' and tried adding " around the value. That did not help. Splunk still comes back with 0 results.&lt;/P&gt;

&lt;P&gt;I am ok with using 'earliest=' in SPL, unless it is less efficient or not recommended, as compared to 'earliest_time' from interface.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 23:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348290#M63944</guid>
      <dc:creator>shikhanshu</dc:creator>
      <dc:date>2017-09-25T23:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348291#M63945</link>
      <description>&lt;P&gt;Use dashes instead of slashes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search="search index=firewalls dest=%22172.0.0.1%22" -d output_mode=raw -d earliest_time="2017-01-01T00:00:00.000-04:00"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Oct 2017 16:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348291#M63945</guid>
      <dc:creator>xavierashe</dc:creator>
      <dc:date>2017-10-23T16:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348292#M63946</link>
      <description>&lt;P&gt;Dashes is what I have always had anyway. In any case, I have switched over the embedding the 'earliest_time' in the query itself rather than as a separate data item in POST request and that works fine. So I will just stick to that. Thanks for the response!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 17:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348292#M63946</guid>
      <dc:creator>shikhanshu</dc:creator>
      <dc:date>2017-10-23T17:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: earliest_time not working in REST post data, but working in search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348293#M63947</link>
      <description>&lt;P&gt;I did try with "YYYY-mm-dd:H:i:s" format and that works!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/earliest-time-not-working-in-REST-post-data-but-working-in/m-p/348293#M63947</guid>
      <dc:creator>shikhanshu</dc:creator>
      <dc:date>2017-10-23T20:12:55Z</dc:date>
    </item>
  </channel>
</rss>

