<?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: Http Event Collector ignores JSON timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497689#M84888</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm assuming you used  raw+ props to get what you want.  &lt;/P&gt;

&lt;P&gt;Are you able to do event protocol+ NO props to get proper time-stamping?   I thought that is what HEC was designed for among other things, i.e. to simplify and speed-up  data landing without data having to go through the parsing pipeline etc.  &lt;/P&gt;

&lt;P&gt;If you CAN control the formatting from the sender side,  you need to change time to epoch time,  and then you can just use HEC event protocol. &lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2020 21:02:46 GMT</pubDate>
    <dc:creator>kundeng</dc:creator>
    <dc:date>2020-04-26T21:02:46Z</dc:date>
    <item>
      <title>Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497681#M84880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this json event I put in trough HEC:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
  "time": "2019-10-01T11:29:53.817",
  "eventType": "Computer Room Temp Monitoring",
  "location": {
    "dataCenter": "PDC1",
    "hostname": "PELLE",
    "temp": {
      "dateStart": "2019-10-02T16:24:43",
      "dateEnd": "2019-10-02T16:29:53.817",
      "average": 23,
      "min": 21,
      "max": 24
    }
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am unable to set the "time" as the actual event time:&lt;BR /&gt;
Have tried with both "_json" and my own sourcetype but to no avail. Have tried with both EPOCH and time format as above.&lt;BR /&gt;
My own sourcetype looks like this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[crtemp]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
TIMESTAMP_FIELDS = time
category = Structured
description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="test_blank"&gt;http://json.org/&lt;/A&gt;
disabled = false
pulldown_type = 1
#TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3Q
TIME_FORMAT =
TIME_PREFIX = time
MAX_TIMESTAMP_LOOKAHEAD = 30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497681#M84880</guid>
      <dc:creator>apider</dc:creator>
      <dc:date>2019-10-03T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497682#M84881</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;

&lt;P&gt;[ crtemp]&lt;BR /&gt;
CHARSET=AUTO&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;The events get the timestamp of _time 10/1/1911:29:53.817 AM&lt;/P&gt;

&lt;P&gt;Where is HEC configured in your architecture and where do you apply the props? 1 system or a distributed system with heavy forwarders, indexers, search heads etc?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497682#M84881</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2020-09-30T02:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497683#M84882</link>
      <description>&lt;P&gt;Tried your conf in props, but it is not working for me. Still get the indexing time only.&lt;BR /&gt;
It is a singe instance installation (test).&lt;BR /&gt;
the props,conf is in $SPLUNK_HOME/etc/system/local&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 06:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497683#M84882</guid>
      <dc:creator>apider</dc:creator>
      <dc:date>2019-10-04T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497684#M84883</link>
      <description>&lt;P&gt;Question:&lt;BR /&gt;
Did you use the "Exact" or "Explicit" JSON fields from this example?&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/HECExamples"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/HECExamples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497684#M84883</guid>
      <dc:creator>apider</dc:creator>
      <dc:date>2019-10-04T12:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497685#M84884</link>
      <description>&lt;P&gt;@apider Can you give this a try along with other configs  in your props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
TIME_PREFIX=\"time\"\:\s\"
MAX_TIMESTAMP_LOOKAHEAD=30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 16:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497685#M84884</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2019-10-04T16:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497686#M84885</link>
      <description>&lt;P&gt;If you are hitting the event endpoint instead of raw it will not process through the pipeline like that. Change to raw endpoint if you are unable to control the JSON payload to meet the HEC requirements.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 17:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497686#M84885</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-10-04T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497687#M84886</link>
      <description>&lt;P&gt;Ah, thank you guys!&lt;BR /&gt;
Of course it's only the RAW endpoint that enables me to do this.&lt;/P&gt;

&lt;P&gt;Have learned something today. Did not get up from bed in vain this morning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
/Filip&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
  "time": "2019-10-02T16:29:53.817",
  "event": {
    "eventType": "Computer Room Temp Monitoring",
    "location": {
      "dataCenter": "PDC1",
      "hostname": "PELLE",
      "dateStart": "2019-10-02T16:24:43",
      "dateEnd": "2019-10-02T16:29:53.817",
      "temp": {
        "average": 23,
        "min": 22,
        "max": 24
      }
    }
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Oct 2019 11:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497687#M84886</guid>
      <dc:creator>apider</dc:creator>
      <dc:date>2019-10-07T11:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497688#M84887</link>
      <description>&lt;P&gt;Actuallt posting to the RAW endpoint solved the problem and the "time" field gets set as "_time"&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 11:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497688#M84887</guid>
      <dc:creator>apider</dc:creator>
      <dc:date>2019-10-07T11:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497689#M84888</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm assuming you used  raw+ props to get what you want.  &lt;/P&gt;

&lt;P&gt;Are you able to do event protocol+ NO props to get proper time-stamping?   I thought that is what HEC was designed for among other things, i.e. to simplify and speed-up  data landing without data having to go through the parsing pipeline etc.  &lt;/P&gt;

&lt;P&gt;If you CAN control the formatting from the sender side,  you need to change time to epoch time,  and then you can just use HEC event protocol. &lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 21:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/497689#M84888</guid>
      <dc:creator>kundeng</dc:creator>
      <dc:date>2020-04-26T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/527336#M88937</link>
      <description>&lt;P&gt;So it appears you actually can, but the trick is here:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.7/AddAWSConfigRulesSingle/ConfigureHECKinesis#Configure_timestamp_extraction" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.7/AddAWSConfigRulesSingle/ConfigureHECKinesis#Configure_timestamp_extraction&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Last check, AWS does not allow you to work with this switch (for Kinesis Firehose situations), but you can test it out with your own HEC:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;/services/collector/event?auto_extract_timestamp=true &amp;lt;etc&amp;gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It should be noted that this enters at the merging pipeline, and not right into the typing.&amp;nbsp;&lt;A href="https://www.aplura.com/assets/pdf/hec_pipelines.pdf" target="_blank" rel="noopener"&gt;https://www.aplura.com/assets/pdf/hec_pipelines.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 16:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/527336#M88937</guid>
      <dc:creator>jamesjarrett</dc:creator>
      <dc:date>2020-10-30T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/570669#M101131</link>
      <description>&lt;P&gt;if I must hit the event endpoint, what is the "time" field it expects?&amp;nbsp; I am currently sending something called "time" and getting ignored, similar to OP.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 19:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/570669#M101131</guid>
      <dc:creator>ridwanahmed</dc:creator>
      <dc:date>2021-10-12T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector ignores JSON timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/570675#M101132</link>
      <description>&lt;P class="lia-align-left"&gt;A golden shovel for you for digging up such an old thread &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;But seriously, here's the info you need.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/Data/FormateventsforHTTPEventCollector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/Data/FormateventsforHTTPEventCollector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-ignores-JSON-timestamp/m-p/570675#M101132</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-12T20:31:06Z</dc:date>
    </item>
  </channel>
</rss>

