<?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: Occasional error in converting time stamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105227#M97564</link>
    <description>&lt;P&gt;Thanks Kristian,&lt;/P&gt;

&lt;P&gt;So yeah I'm inheriting this system and it looks like they didn't set the source formate explicitly so I'm reindexing all the data (oh so much fun!). It looks like everything is ok so far, so I'm hoping that has fixed my problem, but I'll check those other fields once its fully done.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2013 22:55:27 GMT</pubDate>
    <dc:creator>tristanmatthews</dc:creator>
    <dc:date>2013-10-18T22:55:27Z</dc:date>
    <item>
      <title>Occasional error in converting time stamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105224#M97561</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm seeing a very weird behavior from splunk and wondering if anyone knows whats going on.&lt;/P&gt;

&lt;P&gt;My input is a cvs file with unix time stamps, which splunk seems to be reading in properly&lt;/P&gt;

&lt;P&gt;one of my time stamps is&lt;/P&gt;

&lt;P&gt;1382037457.102446000&lt;/P&gt;

&lt;P&gt;both in the csv file and as read by splunk&lt;/P&gt;

&lt;P&gt;splunk gives an event time of:&lt;BR /&gt;
10/19/13 6:38:12.700 AM&lt;/P&gt;

&lt;P&gt;which seems weird sense this is from a live feed so it should have just happened. If i google a general unix time stamp converter I get:&lt;BR /&gt;
10 / 17 / 13 @ 11:17:37am PST&lt;/P&gt;

&lt;P&gt;which seems about right. This isn't happening all the time, on a different search I get ~ 116k events and see 205 or .2% with weird times. For those events the times &lt;/P&gt;

&lt;P&gt;1381940863.218676000&lt;BR /&gt;
1382044524.744784000&lt;/P&gt;

&lt;P&gt;which convert to give times of&lt;/P&gt;

&lt;P&gt;10 / 16 / 13 @ 8:27:43am PST&lt;BR /&gt;
10 / 17 / 13 @ 1:15:24pm PST&lt;/P&gt;

&lt;P&gt;but splunk give times of&lt;BR /&gt;
10 / 17 / 13 @ 2:55:00.000 PM (PST)&lt;BR /&gt;
10 / 17 / 13 @ 2:15:24.000 PM (PST)&lt;/P&gt;

&lt;P&gt;so yeah, I'm more then a little confused.&lt;/P&gt;

&lt;P&gt;Anyone know whats going on?&lt;/P&gt;

&lt;P&gt;-Tristan&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 22:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105224#M97561</guid>
      <dc:creator>tristanmatthews</dc:creator>
      <dc:date>2013-10-17T22:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional error in converting time stamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105225#M97562</link>
      <description>&lt;P&gt;Have you tried setting the TIME_FORMAT attribute in props.conf?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your source or sourcetype]
TIME_FORMAT = %s.%9N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE&lt;/P&gt;

&lt;P&gt;For the incorrectly parsed events, look at the values for &lt;CODE&gt;timestartpos&lt;/CODE&gt; and &lt;CODE&gt;timeendpos&lt;/CODE&gt; - the are default fields that exist for all events with a timestamp, and tell you the offsets within an event between which the timestamp information was found. This will show if Splunk tried to read the wrong part of the event for timestamp information.&lt;/P&gt;

&lt;P&gt;Also, look in the splunkd.log for &lt;CODE&gt;DateParserVerbose&lt;/CODE&gt; messages, which may reveal some information regarding the parsing;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd DateParserVerbose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It may also be wise to set the proper attributes for &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Post a few of the incorrectly parsed events (whole events), along with the time Splunk figured, as well as the relevant part of props.conf for the sourcetype. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 23:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105225#M97562</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-17T23:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional error in converting time stamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105226#M97563</link>
      <description>&lt;P&gt;This doesn't look like a timezone problem. &lt;/P&gt;

&lt;P&gt;If it was, the calculation would be out by a round number of hours.&lt;/P&gt;

&lt;P&gt;Consider:&lt;/P&gt;

&lt;P&gt;perl -e "print scalar gmtime(1382037457.102446000)" &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt; Thu Oct 17 19:17:37 2013&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;splunk gives &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;10/19/13 6:38:12.700 AM&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;perl -e "print scalar gmtime(1381940863.218676000)"&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Wed Oct 16 16:27:43 2013&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;splunk gives &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;10/17/13 @ 2:55:00.000 PM (PST) &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'm wondering if splunk could be picking up the wrong number when it goes looking for seconds-past-epoch; either using a different number from the same event, or a number from a different event entirely.&lt;/P&gt;

&lt;P&gt;You said this is from a .csv file.  Is there any chance that any of your fields have embedded commas that are confusing it, or that the end of line is being mangled?  Are you able to share the misbehaving lines?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 23:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105226#M97563</guid>
      <dc:creator>BenAveling</dc:creator>
      <dc:date>2013-10-17T23:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional error in converting time stamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105227#M97564</link>
      <description>&lt;P&gt;Thanks Kristian,&lt;/P&gt;

&lt;P&gt;So yeah I'm inheriting this system and it looks like they didn't set the source formate explicitly so I'm reindexing all the data (oh so much fun!). It looks like everything is ok so far, so I'm hoping that has fixed my problem, but I'll check those other fields once its fully done.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 22:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-error-in-converting-time-stamps/m-p/105227#M97564</guid>
      <dc:creator>tristanmatthews</dc:creator>
      <dc:date>2013-10-18T22:55:27Z</dc:date>
    </item>
  </channel>
</rss>

