<?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: Splunk Parsing dates incorrectly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87689#M97240</link>
    <description>&lt;P&gt;I think that the time prefix and lookahead will still work. Although I might change the lookahead value to 50 instead of 60.  And I am not sure why It messed up the timestamp..&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2012 18:04:48 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-03-08T18:04:48Z</dc:date>
    <item>
      <title>Splunk Parsing dates incorrectly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87686#M97237</link>
      <description>&lt;P&gt;I know there have been other questions asked about splunk parsing dates.  However, I have what appears to be a unique situation where I do not understand how Splunk is interpreting dates.&lt;/P&gt;

&lt;P&gt;I have the following log entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;8:58:05.202 PM  [3/6/12 19:58:05:202 EST] 000002f9 LTPAServerObj W SECJ0371W: Validation of the LTPA token failed because the token expired with the following info: Token expiration Date: Tue Mar 06 19:55:26 EST 2012, current Date: Tue Mar 06 19:58:05 EST 2012.

host=fmgpapp05   Options|  sourcetype=RulesOnline   Options|  source=/log/parpapp051/SystemOut.log   Options|  date_mday=12   Options|  date_hour=19   Options|  date_minute=58   Options 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why is Splunk tagging the log entry as "06/12/11" when the log date is actually "3/6/12"?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 14:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87686#M97237</guid>
      <dc:creator>steveirogers</dc:creator>
      <dc:date>2012-03-08T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Parsing dates incorrectly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87687#M97238</link>
      <description>&lt;P&gt;Why is - Because Splunk sees the first date as the timestamp. But don't worry, you can easily fix that. I assume that the sourcetype for this data is RulesOnline. In &lt;STRONG&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/STRONG&gt;, put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[RulesOnline]
TIME_PREFIX =\[
MAXTIMESTAMPLOOKAHEAD = 60
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This tells Splunk that the timestamp appears AFTER the first &lt;STRONG&gt;[&lt;/STRONG&gt; and that the timestamp appears within the first 60 characters of the event. When there are multiple strings that &lt;EM&gt;could&lt;/EM&gt; be interpreted as timestamps, you sometimes need to give Splunk a little help to pick the right one.&lt;/P&gt;

&lt;P&gt;There is more info in the manual &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 15:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87687#M97238</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-08T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Parsing dates incorrectly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87688#M97239</link>
      <description>&lt;P&gt;Thanks Lguinn.  My question might have been misleading and I just want to clarify.&lt;BR /&gt;
The "6/12/11" is not part of the log entry. The actual log entry is:&lt;BR /&gt;
8:58:05.202 PM  [3/6/12 19:58:05:202 EST] 000002f9 LTPAServerObj W SECJ0371W: Validation of the LTPA token failed because the token expired with the following info: Token expiration Date: Tue Mar 06 19:55:26 EST 2012, current Date: Tue Mar 06 19:58:05 EST 2012&lt;/P&gt;

&lt;P&gt;Splunk is creating the log entry as "6/12/11" when I would have expected it to be "03/06/12"&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87688#M97239</guid>
      <dc:creator>steveirogers</dc:creator>
      <dc:date>2012-03-08T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Parsing dates incorrectly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87689#M97240</link>
      <description>&lt;P&gt;I think that the time prefix and lookahead will still work. Although I might change the lookahead value to 50 instead of 60.  And I am not sure why It messed up the timestamp..&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Parsing-dates-incorrectly/m-p/87689#M97240</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-08T18:04:48Z</dc:date>
    </item>
  </channel>
</rss>

