<?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: How to set _time on base of a specific JSON field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515749#M87332</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225301"&gt;@yuemsek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The changes in props.conf have not been applied to the log at all. Did you reboot or something?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 10:31:54 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-08-24T10:31:54Z</dc:date>
    <item>
      <title>HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515486#M87295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following json which I put in through HEC:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "message": {
        "metadata": {
            "id": "https://...",
            "uri": "https://...",
            "type": "com...."
        },
        "messageGuid": "AF8aCGJx-9ZI-JGyvFTGoSufbXlA",
        "correlationId": "AF8aCGI8ISFZGiG8eh9NAegmK2q5",
        "logStart": "2020-07-23T22:00:02.4",
        "logEnd": "2020-07-23T22:00:10.866",
        "integrationFlowName": "Sample_Flow",
        "status": "DONE",
        "alternateWebLink": "https://...",
        "logLevel": "INFO",
        "customStatus": "DONE",
        "transactionId": "afdfb636cbce4dd0b537b6623954a490"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;I log it with the splunk logging library (appender is com.splunk.logging.HttpEventCollectorLogbackAppender) with a defined sourcetype.&lt;/P&gt;&lt;P&gt;The _time attribute of the event in Splunk I need to set with the value of the json field&amp;nbsp;"logStart".&lt;/P&gt;&lt;P&gt;For this purpose I have the following settings in the sourcetype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="source_type_1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10440iFDC6662F258703D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="source_type_1.png" alt="source_type_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="source_type_2.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10439iEFBDC36B6733248B/image-size/large?v=v2&amp;amp;px=999" role="button" title="source_type_2.png" alt="source_type_2.png" /&gt;&lt;/span&gt;I hoped, that Splunk will set the _time value on base of the settings TIMESTAMP_FIELDS and TIME_FORMAT.&lt;/P&gt;&lt;P&gt;As result I get the following json in Splunk:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "severity": "INFO",
    "logger": "SplunkLogger",
    "time": "1595593644.384",
    "thread": "http-nio-8080-exec-1",
    "message": {
        "metadata": {
            "id": "https://...",
            "uri": "https://...",
            "type": "com...."
        },
        "messageGuid": "AF8aCGJx-9ZI-JGyvFTGoSufbXlA",
        "correlationId": "AF8aCGI8ISFZGiG8eh9NAegmK2q5",
        "logStart": "2020-07-23T22:00:02.4",
        "logEnd": "2020-07-23T22:00:10.866",
        "integrationFlowName": "Sample_Flow",
        "status": "DONE",
        "alternateWebLink": "https://...",
        "logLevel": "INFO",
        "customStatus": "DONE",
        "transactionId": "afdfb636cbce4dd0b537b6623954a490"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;And the _time value has been setted on base of the epoch time, that was generated via the splunk appender (current log time).&lt;/P&gt;&lt;P&gt;I didn't find any possibility to influence the generation of the "time" field in the splunk logging library:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-library-javalogging" target="_blank"&gt;https://github.com/splunk/splunk-library-javalogging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How can I let Splunk set the _time value on base of the specific json field "logStart"?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515486#M87295</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-21T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515566#M87300</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225301"&gt;@yuemsek&lt;/a&gt;&amp;nbsp;, could you try relacing timestamp_field by&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIME_PREFIX =\"logStart\": \"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 22:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515566#M87300</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-21T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515571#M87302</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2020-07-23T22:00:02.4&lt;/PRE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225301"&gt;@yuemsek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;your logStart is %FT%T.%1N format&lt;BR /&gt;please check reference&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 23:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515571#M87302</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-21T23:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515719#M87322</link>
      <description>&lt;P&gt;thanks for your replies,&lt;/P&gt;&lt;P&gt;I changed now the configuration as following&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_source_type_1.png" style="width: 796px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10456i4B6160889ABD729D/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_source_type_1.png" alt="20200824_source_type_1.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_source_type_2.png" style="width: 795px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10455i2D697FBF9F9BD1D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_source_type_2.png" alt="20200824_source_type_2.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result is the same:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_event.png" style="width: 712px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10459i762E1E8DECDF7941/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_event.png" alt="20200824_event.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other comments/suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515719#M87322</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-24T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515723#M87324</link>
      <description>&lt;P&gt;TIMESTAMP_FIELDS=message.logStart&lt;BR /&gt;&lt;BR /&gt;not &lt;STRONG&gt;TIME_PREFIX and TIME_FORMAT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;P.S. SHOULD_LINEMERGE = false is better.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515723#M87324</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-24T08:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515729#M87326</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried w/o TIME_FORMAT and without TIME_PREFIX and changed the TIMESTAMP_FIELDS as you suggested.&lt;/P&gt;&lt;P&gt;I see no change.&lt;/P&gt;&lt;P&gt;In the configuration I realized, that the UI is not allowing me to change to &lt;SPAN&gt;SHOULD_LINEMERGE = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The UI is changing it automatically to&amp;nbsp;&lt;EM&gt;SHOULD_LINEMERGE = true&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Here the latest configuration:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200824_2_source_type_1.png" style="width: 798px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10460i79BE650F95D32D9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_2_source_type_1.png" alt="20200824_2_source_type_1.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_2_source_type_2.png" style="width: 798px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10462i02A811067ECCAFFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_2_source_type_2.png" alt="20200824_2_source_type_2.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which other points can effect, that Splunk is taking the generated time attribute?&lt;/P&gt;&lt;P&gt;Do you know any impacts due to KV_MODE and INDEXED_EXTRACTIONS?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515729#M87326</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-24T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515735#M87327</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ans1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10463i2FD744BC78DCAA20/image-size/large?v=v2&amp;amp;px=999" role="button" title="ans1.png" alt="ans1.png" /&gt;&lt;/span&gt;your setting remains T&lt;SPAN&gt;IME_FORMAT.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515735#M87327</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-24T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515739#M87328</link>
      <description>&lt;P&gt;As I've written, I removed the TIME_FORMAT before, without any effect.&lt;/P&gt;&lt;P&gt;Here the configuration now:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_3_source_type_2.png" style="width: 798px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10464iC7CC375E4593CAA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_3_source_type_2.png" alt="20200824_3_source_type_2.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result ist the same:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_2_event.png" style="width: 764px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10465i146605B1CD7F515A/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_2_event.png" alt="20200824_2_event.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515739#M87328</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-24T09:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515741#M87329</link>
      <description>&lt;P&gt;Here an additional information about my case:&lt;/P&gt;&lt;P&gt;I put the events through HEC (HTTP Event Collector) via the Splunk Logging Library.&lt;/P&gt;&lt;P&gt;Here the log configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Appender name="Splunk_HEC_Q"
		class="com.splunk.logging.HttpEventCollectorLogbackAppender"&amp;gt;
		&amp;lt;url&amp;gt;https://xxxxxxxxxx.com:8088&amp;lt;/url&amp;gt;
		&amp;lt;token&amp;gt;aaaaaaaaa-bbbb-dddd-aaaa-xxxxxxxxxxxxx&amp;lt;/token&amp;gt;
		&amp;lt;disableCertificateValidation&amp;gt;true&amp;lt;/disableCertificateValidation&amp;gt;
		&amp;lt;batch_size_count&amp;gt;1&amp;lt;/batch_size_count&amp;gt;
		&amp;lt;sourcetype&amp;gt;xxxxxx:json&amp;lt;/sourcetype&amp;gt;
		&amp;lt;source&amp;gt;xxxxxxx&amp;lt;/source&amp;gt;
		&amp;lt;layout class="ch.qos.logback.classic.PatternLayout"&amp;gt;
			&amp;lt;pattern&amp;gt;%msg&amp;lt;/pattern&amp;gt;
		&amp;lt;/layout&amp;gt;
	&amp;lt;/Appender&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515741#M87329</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-24T10:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515744#M87330</link>
      <description>&lt;P&gt;your _time is &lt;STRONG&gt;time &lt;/STRONG&gt;field value.&lt;BR /&gt;I don't know why you are using the time field as a value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You say it's changed, but it hasn't changed at all.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515744#M87330</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-24T10:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515748#M87331</link>
      <description>&lt;P&gt;I guess you mean the time field in the below (marked blue):&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200824_3_event.png" style="width: 764px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10466iDEEC3282A825319A/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200824_3_event.png" alt="20200824_3_event.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This field is generated via the Splunk logging library, as I explained in my first entry here.&lt;/P&gt;&lt;P&gt;I cannot influence the generation of this field (together with the other fields severity, thread and logger).&lt;/P&gt;&lt;P&gt;Would it help to convert the message.logStart value to epoch time, or would Splunk ever take the generated time field in the json root element?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515748#M87331</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-24T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515749#M87332</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225301"&gt;@yuemsek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The changes in props.conf have not been applied to the log at all. Did you reboot or something?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515749#M87332</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-24T10:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516007#M87351</link>
      <description>&lt;P&gt;Hello to4kawa,&lt;/P&gt;&lt;P&gt;do you mean we need to reboot the environment after we changed the configuration?&lt;/P&gt;&lt;P&gt;I've only some rights about sourcetypes etc. in web ui. For a reboot I need to ask the administrators.&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 12:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516007#M87351</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-25T12:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516674#M87447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I installed now the trial version of Splunk Enterprise and tried several configurations out. In every modification I restarted Splunk. But in all cases the effect was the same: The indexer (I guess) is taking the value of the generated field "time" to set the event attribute "_time".&lt;/P&gt;&lt;P&gt;Here the props.conf configurations I tried out:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = message.logStart
category = Custom
description = ODATA SCPI MPL JSON
pulldown_type = 1
disabled = false&lt;/LI-CODE&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_PREFIX=\"logStart\":\"
category = Custom
description = ODATA SCPI MPL JSON
pulldown_type = 1
disabled = false&lt;/LI-CODE&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_PREFIX="logStart":"
category = Custom
description = ODATA SCPI MPL JSON
pulldown_type = 1
disabled = false&lt;/LI-CODE&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_PREFIX="logStart":"
TIME_FORMAT=%FT%T.%3N
category = Custom
description = ODATA SCPI MPL JSON
pulldown_type = 1
disabled = false&lt;/LI-CODE&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIMESTAMP_FIELDS=message.logStart
LINE_BREAKER = ([\r\n]+){
category = Custom
description = ODATA SCPI MPL JSON&lt;/LI-CODE&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIME_FORMAT=%FT%T.%3N
TIMESTAMP_FIELDS=message.logStart
LINE_BREAKER = ([\r\n]+){
category = Custom
description = ODATA SCPI MPL JSON&lt;/LI-CODE&gt;&lt;P&gt;Where can I look to better understand the reasons of this behavior (logs etc.)?&lt;/P&gt;&lt;P&gt;Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 11:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516674#M87447</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-28T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516685#M87448</link>
      <description>&lt;P&gt;All regex is wrong and LINE_BREAKER breaks json format.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 12:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516685#M87448</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-28T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516709#M87451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I corrected the configuration in the following way:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIME_FORMAT = %FT%T.%3N
TIMESTAMP_FIELDS = message.logStart
category = Custom
description = ODATA SCPI MPL JSON
NO_BINARY_CHECK = true&lt;/LI-CODE&gt;&lt;P&gt;But result is the same.&lt;/P&gt;&lt;P&gt;And by the way: If I open the configuration above in the UI, the UI is putting the LINE_BREACKER option to the configuration:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200828_source_type_1.png" style="width: 520px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10554i60B67340473AF4EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200828_source_type_1.png" alt="20200828_source_type_1.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516709#M87451</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-28T13:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: HEC: How to set _time on base of a specific JSON field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516744#M87457</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;now I find the reason:&lt;/P&gt;&lt;P&gt;In another thread&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/53775"&gt;@hernanb&lt;/a&gt;&amp;nbsp;postet, that the "event" end point of HEC is forwarding the data directly without parsing to the indexing (additionally HEC has a "raw" endpoint, that parses the data before). Here the link to the thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-do-you-extract-a-timestamp-from-JSON-logs-that-are-being/td-p/395776" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/How-do-you-extract-a-timestamp-from-JSON-logs-that-are-being/td-p/395776&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As I use the Splunk-Logging-Library (it is using by default the "event" end point), I needed to add a "type" element in the appender configuration (with the value 'raw'):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Appender name="Splunk_HEC_Local"
		class="com.splunk.logging.HttpEventCollectorLogbackAppender"&amp;gt;
		&amp;lt;url&amp;gt;https://localhost:8088&amp;lt;/url&amp;gt;
		&amp;lt;token&amp;gt;aaaaaaaaa-bbbbbbbbb-cccccccc&amp;lt;/token&amp;gt;
	&amp;lt;disableCertificateValidation&amp;gt;true&amp;lt;/disableCertificateValidation&amp;gt;
		&amp;lt;batch_size_count&amp;gt;1&amp;lt;/batch_size_count&amp;gt;
		&amp;lt;sourcetype&amp;gt;odata_mpl_message_json&amp;lt;/sourcetype&amp;gt;
		&amp;lt;source&amp;gt;Splunk-Integration&amp;lt;/source&amp;gt;
		&amp;lt;layout class="ch.qos.logback.classic.PatternLayout"&amp;gt;
			&amp;lt;pattern&amp;gt;%msg&amp;lt;/pattern&amp;gt;
		&amp;lt;/layout&amp;gt;
		&amp;lt;type&amp;gt;raw&amp;lt;/type&amp;gt;
	&amp;lt;/Appender&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I changed the props.conf to the original expected solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[odata_mpl_message_json]
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIME_FORMAT=%FT%T.%3N
TIMESTAMP_FIELDS=event.message.logStart
LINE_BREAKER = ([\r\n]+)
category = Custom
description = ODATA SCPI MPL JSON&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I send logs over the HEC now, the events have a little different structure with an "event" field:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20200828_event_1.png" style="width: 543px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10558i964FDEE0DC08AC4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200828_event_1.png" alt="20200828_event_1.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then as you can see in the screenshot, the _time event attribute has been setted on base of the json field "event.message.logStart".&lt;/P&gt;&lt;P&gt;To find this solution it was necessary to look to the source code of the classes HttpEventCollectorSender.java and&amp;nbsp;&lt;SPAN class="pl-c"&gt;HttpEventCollectorLoggingHandler because t&lt;/SPAN&gt;&lt;SPAN&gt;his aspect is not documented.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Nevertheless thanks for your support.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/516744#M87457</guid>
      <dc:creator>yuemsek</dc:creator>
      <dc:date>2020-08-28T15:18:01Z</dc:date>
    </item>
  </channel>
</rss>

