<?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: Please help me identify why Splunk is omitting extracting milliseconds from my JSON in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435517#M94170</link>
    <description>&lt;P&gt;@paimonsoror try with &lt;CODE&gt;%6N&lt;/CODE&gt; for microseconds, also for timezone &lt;CODE&gt;%:z&lt;/CODE&gt;. Refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables#Time_variables"&gt;strptime&lt;/A&gt; documentation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6N%:z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Aug 2018 02:48:50 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-08-30T02:48:50Z</dc:date>
    <item>
      <title>Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435516#M94169</link>
      <description>&lt;P&gt;Hi folks, running into a strange issue here.  Taking the following json:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{   [-] 
     @timestamp:     2018-08-30T02:00:33.993764+00:00       
     level:  info   
     message:    2018-08-30 02:00:33 INFO  Client:54 - Application report for application_1532934978357_294156 (state: RUNNING)
     viaq_msg_id:    MzlhNzc2YjYtOTIzYy00MWY4LWEyMTgtYjc2YmRmZDQ3M2Y0   
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here it is as raw&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"level":"info","message":"2018-08-30 02:00:33 INFO  Client:54 - Application report for application_1532934978357_294156 (state: RUNNING)","@timestamp":"2018-08-30T02:00:33.993764+00:00","viaq_msg_id":"MzlhNzc2YjYtOTIzYy00MWY4LWEyMTgtYjc2YmRmZDQ3M2Y0",}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data comes in as a sourcetype of 'fluentd_json' and comes into my HF.  I have tried the following as a props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fluentd_json]
TIMESTAMP_FIELDS=@timestamp
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%N%Z
INDEXED_EXTRACTIONS=json
KV_MODE=none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it doesn't seem to work fully.  I have tried to use that props on both my indexer cluster as well as my HF (it is also sitting on the SH cluster to prevent duplicate extractions).  Both restarted as well. For some reason it omits the milliseconds&lt;/P&gt;

&lt;P&gt;Edit:&lt;/P&gt;

&lt;P&gt;To clarify what i mean, all of my events from this sourcetype have '.000' for the milliseconds&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5677i5BE408E3AB27CDCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 00:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435516#M94169</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2018-08-30T00:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435517#M94170</link>
      <description>&lt;P&gt;@paimonsoror try with &lt;CODE&gt;%6N&lt;/CODE&gt; for microseconds, also for timezone &lt;CODE&gt;%:z&lt;/CODE&gt;. Refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables#Time_variables"&gt;strptime&lt;/A&gt; documentation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6N%:z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 02:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435517#M94170</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-30T02:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435518#M94171</link>
      <description>&lt;P&gt;Doesn't seem to work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I even gave this a shot (TIME_PREFIX)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fluentd_json]
TIMESTAMP_FIELDS=@timestamp
TIME_PREFIX=\"@timestamp\":\"
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6N%:z
INDEXED_EXTRACTIONS=json
KV_MODE=none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The strange thing is that if I do an 'add data' with a sample json, it works perfectly fine with this:&lt;/P&gt;

&lt;P&gt;[ _json ]&lt;BR /&gt;
 SHOULD_LINEMERGE=true&lt;BR /&gt;
 NO_BINARY_CHECK=true&lt;BR /&gt;
 CHARSET=UTF-8&lt;BR /&gt;
 INDEXED_EXTRACTIONS=json&lt;BR /&gt;
 KV_MODE=none&lt;BR /&gt;
 TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6N%:z&lt;BR /&gt;
 TIMESTAMP_FIELDS=@timestamp&lt;/P&gt;

&lt;P&gt;Not sure what the heck is going on. I've doublechecked btool to make sure there are no other props for that sourcetype floating around&lt;/P&gt;

&lt;P&gt;And just to be sure, this only really needs to be done on the HF right?  Since the HF can cook data, i shouldn't have to also throw this on my indexers.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435518#M94171</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2020-09-29T21:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435519#M94172</link>
      <description>&lt;P&gt;hey @paimonsoror. Thanks for posting.&lt;/P&gt;

&lt;P&gt;Would you do me a favor? There is another &lt;A href="https://answers.splunk.com/answers/683889/why-is-splunk-not-indexing-in-milli-seconds.html"&gt;user&lt;/A&gt; that, I believe, is having a similar issue. Would you take a look at their post and verify that for me?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 22:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435519#M94172</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-30T22:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435520#M94173</link>
      <description>&lt;P&gt;@mstjohn_splunk  that looks like the exact same issue.  Very interesting.  A bug you thinking?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 22:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435520#M94173</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2018-08-30T22:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435521#M94174</link>
      <description>&lt;P&gt;@paimonsoror, not sure, but thanks for verifying. I'll try to pass this onto the right person so we can find out! &lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 22:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435521#M94174</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-30T22:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435522#M94175</link>
      <description>&lt;P&gt;@mstjohn_splunk sounds good.  Fyi this is in 7.0 .  I can try and reproduce in 7.1.x tomorrow&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 22:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435522#M94175</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2018-08-30T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me identify why Splunk is omitting extracting milliseconds from my JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435523#M94176</link>
      <description>&lt;P&gt;Please take a look into: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/688698/why-are-milliseconds-not-being-parsed-in-cluster-e.html"&gt;https://answers.splunk.com/answers/688698/why-are-milliseconds-not-being-parsed-in-cluster-e.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-identify-why-Splunk-is-omitting-extracting/m-p/435523#M94176</guid>
      <dc:creator>freedomson</dc:creator>
      <dc:date>2018-09-25T19:32:28Z</dc:date>
    </item>
  </channel>
</rss>

