<?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: [HEC] timestamp recognition in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-timestamp-recognition/m-p/537763#M90117</link>
    <description>&lt;P&gt;With 7.2.8 must use collector/raw, not collector/event to recognize timestamp in the payload.&lt;/P&gt;&lt;P&gt;Ver 8.0 with auto_extract_timestamp has been implemented for collector/event&lt;BR /&gt;The timestamp recognition issue of this case happened as it's not using collector/raw endpoint.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector#Raw_event_parsing" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector#Raw_event_parsing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i) Use 'collector/raw' endpoint then it will detect a correct timestamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ii) Upgrade Splunk to 8.0 or above and use auto_extract_timestamp=true with "collector/event".&lt;BR /&gt;&lt;BR /&gt;for example, in 8.0+&lt;BR /&gt;$ curl -k &lt;A href="http://localhost:8088/services/collector/event?auto_extract_timestamp=true" target="_blank" rel="noopener"&gt;http://localhost:8088/services/collector/event?auto_extract_timestamp=true&lt;/A&gt; -H "Authorization: Splunk &amp;lt;TOKEN&amp;gt;" -H "content-Type: application/json" -d '{"event": "2020-12-16 00:00:00 Hellow world"}'&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 00:32:41 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2021-01-29T00:32:41Z</dc:date>
    <item>
      <title>[HEC] timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-timestamp-recognition/m-p/537762#M90116</link>
      <description>&lt;P&gt;We have data ingesting into Splunk via HEC token, and observed the time parsing of the event is not taking properly.&lt;BR /&gt;Example - In the event the timestamp looks like 2020-12-01 09:59:18.0674, but in the Splunk it was capturing 12/1/20 9:59:18.000 AM. Here missing the millisecond in the Splunk time but it's not limited to the millisecond.. sometimes the second field are not correct..&lt;/P&gt;&lt;P&gt;We tried applying the time format and time prefix for the source and sourcetype as below, but it is not fixing the issue.&lt;BR /&gt;TIME_PREFIX = "Date": "&lt;BR /&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S.%4N&lt;/P&gt;&lt;P&gt;And also tried the props.conf below;&lt;/P&gt;&lt;P&gt;[the_sourcetype]&lt;BR /&gt;AUTO_KV_JSON = false&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;TIMESTAMP_FIELDS = Date&lt;/P&gt;&lt;P&gt;We use collector/event REST endpoint.&lt;/P&gt;&lt;P&gt;Splunk version 7.2.8.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 00:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-timestamp-recognition/m-p/537762#M90116</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2021-01-29T00:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: [HEC] timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-timestamp-recognition/m-p/537763#M90117</link>
      <description>&lt;P&gt;With 7.2.8 must use collector/raw, not collector/event to recognize timestamp in the payload.&lt;/P&gt;&lt;P&gt;Ver 8.0 with auto_extract_timestamp has been implemented for collector/event&lt;BR /&gt;The timestamp recognition issue of this case happened as it's not using collector/raw endpoint.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector#Raw_event_parsing" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector#Raw_event_parsing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i) Use 'collector/raw' endpoint then it will detect a correct timestamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ii) Upgrade Splunk to 8.0 or above and use auto_extract_timestamp=true with "collector/event".&lt;BR /&gt;&lt;BR /&gt;for example, in 8.0+&lt;BR /&gt;$ curl -k &lt;A href="http://localhost:8088/services/collector/event?auto_extract_timestamp=true" target="_blank" rel="noopener"&gt;http://localhost:8088/services/collector/event?auto_extract_timestamp=true&lt;/A&gt; -H "Authorization: Splunk &amp;lt;TOKEN&amp;gt;" -H "content-Type: application/json" -d '{"event": "2020-12-16 00:00:00 Hellow world"}'&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 00:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-timestamp-recognition/m-p/537763#M90117</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2021-01-29T00:32:41Z</dc:date>
    </item>
  </channel>
</rss>

