<?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: REST API - error &amp;quot;Invalid earliest_time.&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149066#M30358</link>
    <description>&lt;P&gt;queryArgs.put("earliest_time",    "8/21/2014T00:00:00");&lt;BR /&gt;
queryArgs.put("latest_time",    "8/31/2014T23:59:59");&lt;/P&gt;

&lt;P&gt;The same error occurs.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:21:27 GMT</pubDate>
    <dc:creator>jetzt82</dc:creator>
    <dc:date>2020-09-28T18:21:27Z</dc:date>
    <item>
      <title>REST API - error "Invalid earliest_time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149064#M30356</link>
      <description>&lt;P&gt;Use Splunk SDK JAVA, I'd use the REST API.&lt;BR /&gt;
If the settings as follows causes an error.&lt;/P&gt;

&lt;P&gt;code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Args queryArgs = new Args();
queryArgs.put("earliest_time",  "8/21/2014:00:00:00");
queryArgs.put("latest_time",    "8/31/2014:23:59:59");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Fatal Error] :1:1: Unexpected end of file.
Exception in thread "main" com.splunk.HttpException: HTTP 400 -- &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="FATAL"&amp;gt;Invalid earliest_time.&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;

at com.splunk.HttpException.create(HttpException.java:84)
at com.splunk.HttpService.send(HttpService.java:386)
at com.splunk.Service.send(Service.java:1268)
at com.splunk.HttpService.post(HttpService.java:243)
at com.splunk.JobCollection.create(JobCollection.java:81)
at Test01_02.Test01_02_01.main(Test01_02_01.java:59)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are there any workaround for this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 04:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149064#M30356</guid>
      <dc:creator>jetzt82</dc:creator>
      <dc:date>2014-12-11T04:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - error "Invalid earliest_time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149065#M30357</link>
      <description>&lt;P&gt;The format of the time strings don't look right.  Have you tried "8/31/2014T00:00:00"?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 05:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149065#M30357</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-12-11T05:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - error "Invalid earliest_time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149066#M30358</link>
      <description>&lt;P&gt;queryArgs.put("earliest_time",    "8/21/2014T00:00:00");&lt;BR /&gt;
queryArgs.put("latest_time",    "8/31/2014T23:59:59");&lt;/P&gt;

&lt;P&gt;The same error occurs.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149066#M30358</guid>
      <dc:creator>jetzt82</dc:creator>
      <dc:date>2020-09-28T18:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - error "Invalid earliest_time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149067#M30359</link>
      <description>&lt;P&gt;In poking through the returned data - when it did work it looks like the format should be.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YYYY-MM-DDTHH:MM:SS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example:  &lt;CODE&gt;2015-05-02T07:30:00&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also append your timezone at the end as well.  Really this is &lt;STRONG&gt;&lt;EM&gt;way harder&lt;/EM&gt;&lt;/STRONG&gt; than it should be.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 19:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/149067#M30359</guid>
      <dc:creator>sklass</dc:creator>
      <dc:date>2015-05-14T19:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - error "Invalid earliest_time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/684800#M114250</link>
      <description>&lt;P&gt;Did you manage to get a solution for this? For me as well this fails. But the relative thing works. Like -1d and so but this does not&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;MM/dd/yyyy':'HH:mm:ss&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-error-quot-Invalid-earliest-time-quot/m-p/684800#M114250</guid>
      <dc:creator>swaprks</dc:creator>
      <dc:date>2024-04-19T16:39:13Z</dc:date>
    </item>
  </channel>
</rss>

