<?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: Unable to extract timestamp from incoming API POST in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438292#M76426</link>
    <description>&lt;P&gt;You should &lt;CODE&gt;unaccept&lt;/CODE&gt; my answer and &lt;CODE&gt;accept&lt;/CODE&gt; your because mine was not it.  Feel free to &lt;CODE&gt;UpVote&lt;/CODE&gt;, though!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Aug 2019 22:45:03 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-08-11T22:45:03Z</dc:date>
    <item>
      <title>Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438287#M76421</link>
      <description>&lt;P&gt;I have an index cluster with load balancer&lt;BR /&gt;
a curl sending a JSON event to HEC&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl &lt;A href="http://indexers-amazonaws.com:8088/services/collector" target="test_blank"&gt;http://indexers-amazonaws.com:8088/services/collector&lt;/A&gt; -H 'Authorization: Splunk ???' -d '{"sourcetype": "bma","event": {"timestamp": "Sun Aug 11 19:00:00 GMT+10:00 2019","Username": "joblogs", "requestID": "???", "access-level": "1", "authentication": "success"}}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props that appears to work when I do it manually through data input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bma]
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = true
TIME_PREFIX = {"timestamp": "
category = Structured
disabled = false
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried numerous variation of props&lt;/P&gt;

&lt;P&gt;What am I missing???&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 10:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438287#M76421</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2019-08-11T10:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438288#M76422</link>
      <description>&lt;P&gt;Have you tried adding &lt;CODE&gt;TIME_FORMAT = %a %b %d %H:%M:%S %Z%:z %Y"&lt;/CODE&gt; to props.conf?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 13:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438288#M76422</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-11T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438289#M76423</link>
      <description>&lt;P&gt;When using the &lt;CODE&gt;/collector/event&lt;/CODE&gt; endpoint, you need to supply your timestamp while formatting your event, along with &lt;CODE&gt;sourcetype&lt;/CODE&gt;, &lt;CODE&gt;source&lt;/CODE&gt; and &lt;CODE&gt;host&lt;/CODE&gt;; if you want to extract the timestamp from your raw data then you need to use the &lt;CODE&gt;/collector/raw&lt;/CODE&gt; HEC endpoint instead.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 21:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438289#M76423</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-11T21:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438290#M76424</link>
      <description>&lt;P&gt;Thank you sir, very good.&lt;BR /&gt;
I figured after to much playing around with props that my problem was with the event.&lt;BR /&gt;
I had tried adding time as suggested but got errors, didn't realise it needed to be epoch time.&lt;/P&gt;

&lt;P&gt;For those who are interested this format works:&lt;BR /&gt;
    curl &lt;A href="http://indexers-amazonaws.com:8088/services/collector/event"&gt;http://indexers-amazonaws.com:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk ???' -d '{"sourcetype": "bma","time": "1565561700","event": {"Username": "jobloggs", "tokenID": "???", "access-level": "1", "authentication": "success"}}'&lt;/P&gt;

&lt;P&gt;And the raw option also does the trick but the final event is not as tidy&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 22:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438290#M76424</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2019-08-11T22:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438291#M76425</link>
      <description>&lt;P&gt;Thanks Rich, yes I had&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 22:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438291#M76425</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2019-08-11T22:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438292#M76426</link>
      <description>&lt;P&gt;You should &lt;CODE&gt;unaccept&lt;/CODE&gt; my answer and &lt;CODE&gt;accept&lt;/CODE&gt; your because mine was not it.  Feel free to &lt;CODE&gt;UpVote&lt;/CODE&gt;, though!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 22:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438292#M76426</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-11T22:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract timestamp from incoming API POST</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438293#M76427</link>
      <description>&lt;P&gt;I had tried adding time as suggested but got errors, didn't realise it needed to be epoch time.&lt;BR /&gt;
For those who are interested this format works:&lt;BR /&gt;
    curl &lt;A href="http://indexers-amazonaws.com:8088/services/collector/event"&gt;http://indexers-amazonaws.com:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk ???' -d '{"sourcetype": "bma","time": "1565561700","event": {"Username": "jobloggs", "tokenID": "???", "access-level": "1", "authentication": "success"}}'&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 11:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-extract-timestamp-from-incoming-API-POST/m-p/438293#M76427</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2019-08-12T11:32:46Z</dc:date>
    </item>
  </channel>
</rss>

