<?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: TIME_FORMAT Ignoring Milliseconds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54966#M10700</link>
    <description>&lt;P&gt;The timestamp is at the very beginning of a multi-line event.  I have also played with TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD without luck.&lt;/P&gt;

&lt;P&gt;The current config I have is:&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=true&lt;BR /&gt;
CHARSET=ISO-8859-1&lt;BR /&gt;
LEARN_SOURCETYPE=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y.%m.%d %H:%M:%S:%3N %Z&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=27&lt;/P&gt;

&lt;P&gt;I've tried uploading a file into the index to make sure it wasn't a problem with the data previewer but it still comes in without the milliseconds.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:42:40 GMT</pubDate>
    <dc:creator>llow</dc:creator>
    <dc:date>2020-09-28T14:42:40Z</dc:date>
    <item>
      <title>TIME_FORMAT Ignoring Milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54964#M10698</link>
      <description>&lt;P&gt;I'm having problems getting Splunk (through data preview) from correctly parsing the following timestamp:&lt;/P&gt;

&lt;P&gt;2013.08.14 12:47:02:467 MST&lt;/P&gt;

&lt;P&gt;I am using the format below but the milliseconds are ignored and Splunk shows '8/14/13 12:47:02.000 PM' instad of '8/14/13 12:47:02.467 PM'&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%Y.%m.%d %H:%M:%S:%3N %Z&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 20:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54964#M10698</guid>
      <dc:creator>llow</dc:creator>
      <dc:date>2013-09-04T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_FORMAT Ignoring Milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54965#M10699</link>
      <description>&lt;P&gt;Hi Llow,&lt;/P&gt;

&lt;P&gt;Your TIME_FORMAT looks OK. Is the timestamp that's being parsed at the start or mid-way through an event?&lt;/P&gt;

&lt;P&gt;One thing I've noticed with the data preview is that sometimes the preview doesn't fully extract the timestamp, while submitting the change and viewing it in Splunk proper will. I found this quite recently helping out with this question:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/101487/striptime-not-parsing-time-stamps"&gt;http://answers.splunk.com/answers/101487/striptime-not-parsing-time-stamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The milliseconds were not detected in the preview, but were fine once put into Splunk.&lt;/P&gt;

&lt;P&gt;I'd recommend throwing your data into a test index to confirm for yourself.&lt;/P&gt;

&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 23:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54965#M10699</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-04T23:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_FORMAT Ignoring Milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54966#M10700</link>
      <description>&lt;P&gt;The timestamp is at the very beginning of a multi-line event.  I have also played with TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD without luck.&lt;/P&gt;

&lt;P&gt;The current config I have is:&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=true&lt;BR /&gt;
CHARSET=ISO-8859-1&lt;BR /&gt;
LEARN_SOURCETYPE=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y.%m.%d %H:%M:%S:%3N %Z&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=27&lt;/P&gt;

&lt;P&gt;I've tried uploading a file into the index to make sure it wasn't a problem with the data previewer but it still comes in without the milliseconds.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54966#M10700</guid>
      <dc:creator>llow</dc:creator>
      <dc:date>2020-09-28T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_FORMAT Ignoring Milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54967#M10701</link>
      <description>&lt;P&gt;Can you edit your original question to include two or three redacted sample events?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2013 00:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-FORMAT-Ignoring-Milliseconds/m-p/54967#M10701</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-05T00:25:16Z</dc:date>
    </item>
  </channel>
</rss>

