<?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: timestamp extraction not showing milliseconds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313240#M58713</link>
    <description>&lt;P&gt;Hi harishalipaka,&lt;/P&gt;

&lt;P&gt;using the simple syntax, I keep getting "12/31/99 23:59:59"&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/3217i540591F5D2BB1363/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>Mon, 17 Jul 2017 07:53:32 GMT</pubDate>
    <dc:creator>wuming79</dc:creator>
    <dc:date>2017-07-17T07:53:32Z</dc:date>
    <item>
      <title>Why isn't timestamp extraction showing milliseconds?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313238#M58711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I managed to make the time format from Epoch to human readable but I can't really get the millisecond out. &lt;BR /&gt;Example timeStamp":1495447178314&lt;BR /&gt;From Splunk it converted to "5/22/17 5:59:38.000 PM" but from &lt;A href="https://www.epochconverter.com/" target="_blank" rel="noopener"&gt;https://www.epochconverter.com/&lt;/A&gt;, it is showing &lt;BR /&gt;May 22, 2017 5:59:38.314 PM&lt;/P&gt;
&lt;P&gt;Reference document: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Configuretimestamprecognition" target="_blank" rel="noopener"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Configuretimestamprecognition&lt;/A&gt;, .%3N should show the milliseconds.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 16:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313238#M58711</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2023-04-05T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not showing milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313239#M58712</link>
      <description>&lt;P&gt;Epoch time should be something like the following: &lt;STRONG&gt;1495427378.314000&lt;/STRONG&gt;, with decimal before millisecond. You can use &lt;CODE&gt;%3N&lt;/CODE&gt; to display milliseconds part.&lt;/P&gt;

&lt;P&gt;Following is the run anywhere search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval timeStamp=strptime("05/22/17 09:59:38.314","%m/%d/%y %H:%M:%S.%3N")
| eval stringStamp=strftime(timeStamp,"%m/%d/%y %H:%M:%S.%3N")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Documentation for various time format variables: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;BR /&gt;
PS: 1st eval is to generate epoch timestamp. I have used second eval just to generate a new field to display time as string. You should ideally use &lt;CODE&gt;fieldformat&lt;/CODE&gt; to retain time as epoch while presenting the same as string time which is human readable.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | fieldformat  timeStamp=strftime(timeStamp,"%m/%d/%y %H:%M:%S.%3N")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2017 13:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313239#M58712</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-14T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not showing milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313240#M58713</link>
      <description>&lt;P&gt;Hi harishalipaka,&lt;/P&gt;

&lt;P&gt;using the simple syntax, I keep getting "12/31/99 23:59:59"&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/3217i540591F5D2BB1363/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>Mon, 17 Jul 2017 07:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313240#M58713</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-07-17T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not showing milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313241#M58714</link>
      <description>&lt;P&gt;Hi, does it work on 1495427378314000 without the decimal? My log timestamp was displayed without the decimal and I keep getting the time being converted as "12/31/99 23:59:59"&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 07:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/313241#M58714</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-07-17T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not showing milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/638706#M109066</link>
      <description>&lt;P&gt;This ended up working for me:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval secs=substr(timestamp,0,10)
| eval msecs=substr(timestamp,11,13)
| strcat secs "." msecs "000" epoch_fmt
| eval datetime=strftime(epoch_fmt,"%Y-%m-%d %H:%M:%S.%3N")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 20:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/638706#M109066</guid>
      <dc:creator>mmcmahon</dc:creator>
      <dc:date>2023-04-04T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction not showing milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/638726#M109068</link>
      <description>&lt;PRE&gt;| makeresults &lt;BR /&gt;| eval time=_time&lt;BR /&gt;| eval timee=time*1000+315&lt;BR /&gt;| eval timeee=strptime(timee,"%s%3N")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 22:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/638726#M109068</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-04T22:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't timestamp extraction showing milliseconds?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/639658#M109222</link>
      <description>&lt;P&gt;| makeresults&lt;BR /&gt;| eval timeint="1495447178314"&lt;BR /&gt;| eval time=strptime(timeint,"%s%3N")&lt;BR /&gt;| eval timestr=strftime(time, "%F %T.%3N %Z")&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 15:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-isn-t-timestamp-extraction-showing-milliseconds/m-p/639658#M109222</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-12T15:35:33Z</dc:date>
    </item>
  </channel>
</rss>

