<?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: timestamp extraction not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538678#M90260</link>
    <description>&lt;P&gt;st-test as expected&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 19:42:49 GMT</pubDate>
    <dc:creator>davidbann</dc:creator>
    <dc:date>2021-02-04T19:42:49Z</dc:date>
    <item>
      <title>timestamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538663#M90255</link>
      <description>&lt;P&gt;I have an http event collector configured with a heavy forwarder in the DMZ forwarding to an internal Indexer. The timtestamp of all events is being set to the time received, it's not picking up the "time" value from the body despite my props.conf settings. No errors or warnings in "_internal" around timestamp or anything close to it.&lt;/P&gt;&lt;P&gt;Test event sent to the collector:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request POST 'https://&amp;lt;redacted&amp;gt;.com/services/collector' \
--header 'Authorization: Splunk &amp;lt;redacted&amp;gt;' \
--header 'Content-Type: application/json' \
--data-raw '{"event": {"time":"2021-02-04 20:20:20.123-05:00","userSettings":{"userId":"ab12345","userName":"ab12345,"site":"000"},"version":5070004},"sourcetype": "st-test"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;shows up as expected in Search results as expected (raw):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"time":"2021-02-04 20:20:20.123-05:00","userSettings":{"userId":"ab12345","userName":"ab12345","site":"901"},"version":5070004}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf for this sourcetype is configured on &lt;U&gt;both&lt;/U&gt; the heavy forwarder and internal indexer:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[st-test]
TRUNCATE = 100000
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Structured
disabled = false
pulldown_type = 1
TIME_PREFIX = "time":"
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%3N%:z
MAX_TIMESTAMP_LOOKAHEAD = 32&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 18:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538663#M90255</guid>
      <dc:creator>davidbann</dc:creator>
      <dc:date>2021-02-04T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538669#M90257</link>
      <description>&lt;P&gt;When you look at the raw event in Search, what sourcetype is shown?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 19:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538669#M90257</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-02-04T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538678#M90260</link>
      <description>&lt;P&gt;st-test as expected&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 19:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538678#M90260</guid>
      <dc:creator>davidbann</dc:creator>
      <dc:date>2021-02-04T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538693#M90262</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32061"&gt;@davidbann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you're possible using the wrong endpoint to support event timestamp extraction.&amp;nbsp; See&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/RESTREF/RESTinput#services.2Fcollector.2Fevent" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/RESTREF/RESTinput#services.2Fcollector.2Fevent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;timestamp extraction is a bit finicky with HEC, but there is a short discussion of timestamp extraction there. There is an envelope timestamp and event timestamp and I recall when using this some months back, that you need to use the raw collector endpoint to get timestamp extracted using settings from props.conf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forget all the detail, In our case we needed to resort to using&amp;nbsp;&lt;SPAN&gt;auto_extract_timestamp=true in the /event endpoint. Have a play with this and the /raw endpoints.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 21:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538693#M90262</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-02-04T21:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538700#M90264</link>
      <description>&lt;P&gt;yep that did it. using:&lt;/P&gt;&lt;P&gt;/services/collector/event?&lt;SPAN&gt;auto_extract_timestamp=true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resulted in the timestamp being picked out of the body instead of event time.&lt;/P&gt;&lt;P&gt;Re-reading&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Data/FormateventsforHTTPEventCollector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Data/FormateventsforHTTPEventCollector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I noticed the following: "&lt;SPAN&gt;&lt;EM&gt;The HTTP Event Collector endpoint extracts the events from the HTTP request and parses them before sending them to indexers.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think that explains the "finicky" behavior&amp;nbsp;as it doesn;t follow the same path as&amp;nbsp;other inputs.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 23:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-not-working/m-p/538700#M90264</guid>
      <dc:creator>davidbann</dc:creator>
      <dc:date>2021-02-04T23:05:47Z</dc:date>
    </item>
  </channel>
</rss>

