<?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 Splunk JSON timestamp in KV_MODE in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562076#M100118</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have Event timestamp with miliseconds:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_0-1628080741810.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15423iE73C433A54582AF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jakub_0-1628080741810.png" alt="Jakub_0-1628080741810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;_time with Unix epoch seconds:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_1-1628080790910.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15424iF4BB79462436250F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jakub_1-1628080790910.png" alt="Jakub_1-1628080790910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and during search the timestamp is from _time, and I would like to have it with milliseconds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_2-1628080861202.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15426iF7853C1A8D4AB86E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakub_2-1628080861202.png" alt="Jakub_2-1628080861202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using KV_MODE in Search cluster props.conf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[k8s:dev]
KV_MODE = json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I am trying to do changes in HF props.conf , like TIME_FIELDS, TIME_PREFIX, TIME_FORMAT, but none of them work. INDEXED_EXCTRACTION is turned OFF in HF props.conf&lt;/P&gt;&lt;P&gt;HF props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[k8s:dev]
#temporary removed to fix https://jira/browse/DEVA-61153
#INDEXED_EXTRACTIONS = JSON
#TIME_PREFIX = {\\"@timestamp\\":\\"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N
TIMESTAMP_FIELDS = @timestamp
TRUNCATE = 200000
TRANSFORMS-discard_events = setnull_whitespace_indented,setnull_debug_logging
SEDCMD-RemoveLogProp = s/("log":)(.*)(?="stream":)//&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is log, which is coming into the Splunk by HEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"log":"{\"@timestamp\":\"2021-08-03T09:00:57.539+02:00\",\"@version\":\"1\",\"message\":&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;Do changes like&amp;nbsp;TIME_FIELDS, TIME_PREFIX, TIME_FORMAT in HF have effect on this process when INDEXED_EXCTRACTION is not in use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your answers.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 13:01:28 GMT</pubDate>
    <dc:creator>Jakub</dc:creator>
    <dc:date>2021-08-04T13:01:28Z</dc:date>
    <item>
      <title>Splunk JSON timestamp in KV_MODE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562076#M100118</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have Event timestamp with miliseconds:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_0-1628080741810.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15423iE73C433A54582AF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jakub_0-1628080741810.png" alt="Jakub_0-1628080741810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;_time with Unix epoch seconds:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_1-1628080790910.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15424iF4BB79462436250F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jakub_1-1628080790910.png" alt="Jakub_1-1628080790910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and during search the timestamp is from _time, and I would like to have it with milliseconds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakub_2-1628080861202.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15426iF7853C1A8D4AB86E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakub_2-1628080861202.png" alt="Jakub_2-1628080861202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using KV_MODE in Search cluster props.conf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[k8s:dev]
KV_MODE = json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I am trying to do changes in HF props.conf , like TIME_FIELDS, TIME_PREFIX, TIME_FORMAT, but none of them work. INDEXED_EXCTRACTION is turned OFF in HF props.conf&lt;/P&gt;&lt;P&gt;HF props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[k8s:dev]
#temporary removed to fix https://jira/browse/DEVA-61153
#INDEXED_EXTRACTIONS = JSON
#TIME_PREFIX = {\\"@timestamp\\":\\"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N
TIMESTAMP_FIELDS = @timestamp
TRUNCATE = 200000
TRANSFORMS-discard_events = setnull_whitespace_indented,setnull_debug_logging
SEDCMD-RemoveLogProp = s/("log":)(.*)(?="stream":)//&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is log, which is coming into the Splunk by HEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"log":"{\"@timestamp\":\"2021-08-03T09:00:57.539+02:00\",\"@version\":\"1\",\"message\":&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;Do changes like&amp;nbsp;TIME_FIELDS, TIME_PREFIX, TIME_FORMAT in HF have effect on this process when INDEXED_EXCTRACTION is not in use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your answers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562076#M100118</guid>
      <dc:creator>Jakub</dc:creator>
      <dc:date>2021-08-04T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk JSON timestamp in KV_MODE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562106#M100121</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233387"&gt;@Jakub&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[k8s:dev]
[m_json_data_log_1]
LINE_BREAKER = ([\r\n]+)
MAX_TIMESTAMP_LOOKAHEAD = 29
NO_BINARY_CHECK = true
SEDCMD-a = s/\{\"log\":\"//g
SEDCMD-b = s/\"\}$//g
SEDCMD-c = s/\\"/"/g
SHOULD_LINEMERGE = false
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N
TIME_PREFIX = {\"log\":\"{\\"@timestamp\\":\\"
TRUNCATE = 200000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Event :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"log":"{\"@timestamp\":\"2021-08-03T09:00:57.539+02:00\",\"@version\":\"1\",\"message\":\"\"}"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can update the&amp;nbsp;&lt;SPAN&gt;SEDCMD&amp;nbsp;&lt;/SPAN&gt;Configuration as per your actual event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-04 at 9.15.21 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15430i195E84B5F2E1A8B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-08-04 at 9.15.21 PM.png" alt="Screenshot 2021-08-04 at 9.15.21 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 15:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562106#M100121</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-08-04T15:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk JSON timestamp in KV_MODE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562207#M100133</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much for your answer. But it does not work. I was thinking if it can't be below issue/solution. (I am collecting it via HTTP Event Collector)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/HEC-How-to-set-time-on-base-of-a-specific-JSON-field/m-p/515486" target="_blank" rel="noopener"&gt;Solved: HEC: How to set _time on base of a specific JSON f... - Splunk Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my SEDCMD works correctly and I was able to remove "log": property from events, hence the props.conf in HF has to work correctly and its not case of the&amp;nbsp;&lt;SPAN&gt;"event" end point of HEC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also SEDCMD is only thing which works.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-RemoveLogProp = s/("log":)(.*)(?="stream":)//&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could it be that INDEXED_EXCTRACTION is OFF and KV_MODE is ON in search?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 08:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-JSON-timestamp-in-KV-MODE/m-p/562207#M100133</guid>
      <dc:creator>Jakub</dc:creator>
      <dc:date>2021-08-05T08:36:48Z</dc:date>
    </item>
  </channel>
</rss>

