<?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: Extract timestamp in Epoch (microseconds) to date in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-in-Epoch-microseconds-to-date/m-p/99353#M20780</link>
    <description>&lt;P&gt;I think this is a display formatting thing more than anything else.  I took your config and sample data and loaded it up. When I search on it, I do only see the time out to 3 decimals.  I did a slightly different search, however, and found that Splunk is storing all 6 decimals, just truncating at display time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=test | eval foo=_time | table _time, foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run this search, you'll see the the results formatted as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/11/11 1:51:16.192 AM  1305096676.192356
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which suggests that the time is being extracted/stored with full 6-decimal accuracy, but only being displayed with 3.  I don't know the explanation for this behavior or if it can be changed - but it would be a good follow on question.&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2011 16:49:56 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-05-11T16:49:56Z</dc:date>
    <item>
      <title>Extract timestamp in Epoch (microseconds) to date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-in-Epoch-microseconds-to-date/m-p/99352#M20779</link>
      <description>&lt;P&gt;Hi, I need Splunk to recognize the timestamps down to microseconds.&lt;/P&gt;

&lt;P&gt;A sample event is listed below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1305096676.192356,64.127.105.40,10.1.81.74,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk 4.1.8 automatically(without any extra configuration) recognizes the epoch time down to the milliseconds.  But I need the timestamp to be extracted to the microseconds.&lt;/P&gt;

&lt;P&gt;I have tried using props.conf with the following configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TIME_PREFIX = ^
TIME_FORMAT = %s.%6N
MAX_TIMESTAMP_LOOKAHEAD = 17
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But didn’t work.&lt;/P&gt;

&lt;P&gt;Any suggestion?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2011 07:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-in-Epoch-microseconds-to-date/m-p/99352#M20779</guid>
      <dc:creator>alextsui</dc:creator>
      <dc:date>2011-05-11T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract timestamp in Epoch (microseconds) to date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-in-Epoch-microseconds-to-date/m-p/99353#M20780</link>
      <description>&lt;P&gt;I think this is a display formatting thing more than anything else.  I took your config and sample data and loaded it up. When I search on it, I do only see the time out to 3 decimals.  I did a slightly different search, however, and found that Splunk is storing all 6 decimals, just truncating at display time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=test | eval foo=_time | table _time, foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run this search, you'll see the the results formatted as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/11/11 1:51:16.192 AM  1305096676.192356
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which suggests that the time is being extracted/stored with full 6-decimal accuracy, but only being displayed with 3.  I don't know the explanation for this behavior or if it can be changed - but it would be a good follow on question.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2011 16:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-in-Epoch-microseconds-to-date/m-p/99353#M20780</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-05-11T16:49:56Z</dc:date>
    </item>
  </channel>
</rss>

