<?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 Stamps 1 day early? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17608#M88472</link>
    <description>&lt;P&gt;So my original questions is somewhat misleading. My question is now:  Why isn't Splunk recognizing the date?&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jul 2010 09:49:25 GMT</pubDate>
    <dc:creator>empath</dc:creator>
    <dc:date>2010-07-17T09:49:25Z</dc:date>
    <item>
      <title>Time Stamps 1 day early?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17606#M88470</link>
      <description>&lt;P&gt;I've got a log file which tracks some call statistics.&lt;/P&gt;

&lt;P&gt;For some reason, about half of these, Splunk has them as being exactly 1 day older than they are.&lt;/P&gt;

&lt;P&gt;This one is indexed as 7/15/10&lt;/P&gt;

&lt;P&gt;VQM: 8885551212 07/16/10.16:59:59 0.000% 0ms - G726 20ms 1 1&lt;/P&gt;

&lt;P&gt;This one is indexed as 07/16/10&lt;/P&gt;

&lt;P&gt;VQM: 8885551212 07/16/10.16:33:40 0.000% 0ms - G729 20ms 1 1&lt;/P&gt;

&lt;P&gt;For the life of me, I cannot tell the difference between the two.&lt;/P&gt;

&lt;P&gt;I found a field called timestartpos, but that just (correctly) shows the first character of the time.  Is there something like that for date?&lt;/P&gt;

&lt;P&gt;I also correctly set the Time Zone in props.conf and created a timeformat string for that source, which didn't make any difference.  &lt;/P&gt;

&lt;P&gt;Thanks for your assistance.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 08:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17606#M88470</guid>
      <dc:creator>empath</dc:creator>
      <dc:date>2010-07-17T08:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time Stamps 1 day early?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17607#M88471</link>
      <description>&lt;P&gt;Additional notes:&lt;/P&gt;

&lt;P&gt;I ran splunk train date on this data, and for some reaosn it can't seem to find the date:&lt;/P&gt;

&lt;P&gt;From:   VQM: 8885551212 07/16/10.16:03:59 0.000% 0ms - G726 20ms 1 1&lt;BR /&gt;
Parsed: Fri Jul 16 16:03:59 2010&lt;BR /&gt;
UTC Time:       1279310639&lt;BR /&gt;
Time Region:    25-34&lt;BR /&gt;
Date Region:    -1--1&lt;BR /&gt;
From:   VQM: 8885551212 07/16/10.16:03:59 0.000% 0ms - G726 20ms 1 1&lt;BR /&gt;
Parsed: Fri Jul 16 16:03:59 2010&lt;BR /&gt;
UTC Time:       1279310639&lt;BR /&gt;
Time Region:    25-34&lt;BR /&gt;
Date Region:    -1--1&lt;/P&gt;

&lt;P&gt;I assume Date Region 1 1 means that it couldn't find it?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 09:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17607#M88471</guid>
      <dc:creator>empath</dc:creator>
      <dc:date>2010-07-17T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time Stamps 1 day early?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17608#M88472</link>
      <description>&lt;P&gt;So my original questions is somewhat misleading. My question is now:  Why isn't Splunk recognizing the date?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 09:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17608#M88472</guid>
      <dc:creator>empath</dc:creator>
      <dc:date>2010-07-17T09:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time Stamps 1 day early?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17609#M88473</link>
      <description>&lt;P&gt;I'm pretty sure &lt;CODE&gt;timestartpos&lt;/CODE&gt; and &lt;CODE&gt;timeendpos&lt;/CODE&gt; show the start/end position of the entire timestamp not just the time portion of it.  (Although, I don't remember every verifying that, so it could just be an assumption.)&lt;/P&gt;

&lt;P&gt;My guess would be that splunk is detecting some part of your date as a different timezone.  You can look at the field &lt;CODE&gt;date_zone&lt;/CODE&gt; and see if it is different between your indexed events.&lt;/P&gt;

&lt;P&gt;As far as your &lt;CODE&gt;props.conf&lt;/CODE&gt; entries, just to confirm you've tried something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [my_source_type]
 TIME_PREFIX = ^\S+ \d+
 TIME_FORMAT = %m/%d/%y.%H:%M:%S
 SHOULD_LINEMERGE = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, I'm not sure about the output of &lt;CODE&gt;splunk date train&lt;/CODE&gt; stuff, the formatting is hard to follow in your comment, and to be honest, I've never found that tool all that useful.  Setting an explicit &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; has always been easier and less awkward IMHO.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 09:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17609#M88473</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-07-17T09:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time Stamps 1 day early?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17610#M88474</link>
      <description>&lt;P&gt;Thanks, I had done Time_format, but I hadn't added the time prefix line! thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 10:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Stamps-1-day-early/m-p/17610#M88474</guid>
      <dc:creator>empath</dc:creator>
      <dc:date>2010-07-17T10:39:05Z</dc:date>
    </item>
  </channel>
</rss>

