<?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: Recognition of FILETIME Timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150924#M30709</link>
    <description>&lt;P&gt;I haven't tried this kind of conversions, but if i have to put my 2 cents in...&lt;/P&gt;

&lt;P&gt;I used &lt;A href="http://"&gt;http://www.epochconverter.com/&lt;/A&gt; to check the sample timestamps that you have given. I feel the second one has two zeroes extra.&lt;/P&gt;

&lt;P&gt;Both &lt;STRONG&gt;1304346239&lt;/STRONG&gt; and &lt;STRONG&gt;1304346239155700&lt;/STRONG&gt; resolve to same date &amp;amp; time. That is &lt;STRONG&gt;GMT: Mon, 02 May 2011 14:23:59 GMT&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So, i feel you need to ignore last four digits of timestamps that are present in your files.&lt;/P&gt;

&lt;P&gt;As Yann pointed out use TIME_FORMAT in props.conf&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2014 15:22:20 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2014-07-21T15:22:20Z</dc:date>
    <item>
      <title>Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150922#M30707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i have the following problem:&lt;/P&gt;

&lt;P&gt;I have to read in logfiles with Splunk that contain an uncommon timestamp format. After a little bit of research, i realized that the timestamps are in a modified version of the windows FILETIME format. The definition is basically :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;As far as i can see, Splunk is not able to correctly parse this timestamp format. Additionally, there is the small modification, that i mentioned before. In my files the last four digits of the timestamp are cut.&lt;/P&gt;

&lt;P&gt;Here a small example:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;13043462391557 &amp;lt;- Timestamp from my files&lt;/LI&gt;
&lt;LI&gt;130434623915570000 &amp;lt;- Timestamp as FILETIME definition implies&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;So if i am correct, this should be something like "100-microsecond intervals since January 1, 1601 (UTC)"&lt;/P&gt;

&lt;P&gt;I know i could just read it in and do some math to convert the timestamp to epoch, but i would prefer to get a clean timestamp recognition working at indextime.&lt;/P&gt;

&lt;P&gt;Is there any way splunk can correctly recognize this timestampformat, or at least the original FILETIME format?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150922#M30707</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-07-21T13:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150923#M30708</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;for the Windows 1601 epoch timestamp, I do not know if the format can be detected at indextime.&lt;BR /&gt;
Here is a manual  way to convert a search time &lt;A href="http://answers.splunk.com/answers/115016/windows-filetime-timestamp-to-human-readable"&gt;http://answers.splunk.com/answers/115016/windows-filetime-timestamp-to-human-readable&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;For the "130434623915570000 " 1970 epoch  timestamp with milliseconds, you can try  "%S%4N" for timestamp detection.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 21 Jul 2014 14:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150923#M30708</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-07-21T14:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150924#M30709</link>
      <description>&lt;P&gt;I haven't tried this kind of conversions, but if i have to put my 2 cents in...&lt;/P&gt;

&lt;P&gt;I used &lt;A href="http://"&gt;http://www.epochconverter.com/&lt;/A&gt; to check the sample timestamps that you have given. I feel the second one has two zeroes extra.&lt;/P&gt;

&lt;P&gt;Both &lt;STRONG&gt;1304346239&lt;/STRONG&gt; and &lt;STRONG&gt;1304346239155700&lt;/STRONG&gt; resolve to same date &amp;amp; time. That is &lt;STRONG&gt;GMT: Mon, 02 May 2011 14:23:59 GMT&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So, i feel you need to ignore last four digits of timestamps that are present in your files.&lt;/P&gt;

&lt;P&gt;As Yann pointed out use TIME_FORMAT in props.conf&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150924#M30709</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-21T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150925#M30710</link>
      <description>&lt;P&gt;Are you sure that it works ?&lt;/P&gt;

&lt;P&gt;I thought that the timestamp detection was happening before the transforms regex replacement.&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Admin/Configurationparametersandthedatapipeline"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Admin/Configurationparametersandthedatapipeline&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 16:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150925#M30710</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-07-21T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150926#M30711</link>
      <description>&lt;P&gt;OOPS that was a mistake. Thanks for correcting it.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 17:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150926#M30711</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-21T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150927#M30712</link>
      <description>&lt;P&gt;Note, this timestamp &lt;EM&gt;doesn't&lt;/EM&gt; map to May 2011. In fact it maps to Thursday, May 1, 2014 7:59:52pm.&lt;/P&gt;

&lt;P&gt;Mapping to May 2011 is what Splunk does by default, incorrectly interpret this as a unix epoch timestamp with extra precision.&lt;BR /&gt;
Manual conversion tool: &lt;A href="http://www.silisoftware.com/tools/date.php"&gt;http://www.silisoftware.com/tools/date.php&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 02:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150927#M30712</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-22T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150928#M30713</link>
      <description>&lt;P&gt;I used the manual conversion tool that you specified.&lt;BR /&gt;
For 130434623915570000 if the filetime is chosen as Input format then as you say it displays Thursday, May 1, 2014 7:59:52pm&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 07:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150928#M30713</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-22T07:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recognition of FILETIME Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150929#M30714</link>
      <description>&lt;P&gt;Hi, thanks for your answer. I already did the convertion of the timestamp in splunk, but as mentioned i would prefer to correctly detect the timestamp at index time.&lt;/P&gt;

&lt;P&gt;Also the "130434623915570000" timestamp is no 1970 epoch timestamp with higher precision, it is still filetime. With your approach, i would gather the same result as already mentioned by @strive.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Recognition-of-FILETIME-Timestamps/m-p/150929#M30714</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-07-23T12:23:39Z</dc:date>
    </item>
  </channel>
</rss>

