<?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: Date code being interpreted incorrectly in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48864#M11694</link>
    <description>&lt;P&gt;Did you check this after a restart, and only on events that have been indexed after you made your changes? Because the events that are already in the indexed will not be affected by these changes.&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2012 07:02:26 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-05-11T07:02:26Z</dc:date>
    <item>
      <title>Date code being interpreted incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48861#M11691</link>
      <description>&lt;P&gt;I had an IBM reporting program exporting CSV data with Splunk reading it correctly for a few hours. During this period, I also exported 30 days worth of historical data, and had it all imported correctly. &lt;/P&gt;

&lt;P&gt;As soon as the clock ticked past midnight on the 10th of May, everything started going a bit weird. Events from yesterday (10/May/2012) were interpreted as the 12th of May 2010. Events from today are going in as the 12th of May 2011. &lt;/P&gt;

&lt;P&gt;Here is an example of CSV data that worked correctly&lt;/P&gt;

&lt;P&gt;devicename,volumename,9/05/12 18:05,&lt;/P&gt;

&lt;P&gt;And here is an example of CSV data that did not work correctly&lt;/P&gt;

&lt;P&gt;devicename,volumename,11/05/12 09:19&lt;/P&gt;

&lt;P&gt;As you can see, the date codes in both are in the same format. One worked correctly, one didn't, and I can't work out why. &lt;/P&gt;

&lt;P&gt;The data is picked up with this section of inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;monitor://C:\IBM\TPC\data\log\reports\splunk_mdiskgrp]
alwaysOpenFile= 1
disabled = false
sourcetype=ibm-tpc-mdg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried in vain to add this kind of thing to the props.conf based on what I found online, with no success. Full disclosure: I have no idea what I'm doing. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ibm-tpc-mdg]
TIME_FORMAT = %d/%m/%y %H:%M
MAX_TIMESTAMP_LOOKAHEAD = 57
TIME_PREFIX = (?i).*?,(?P&amp;lt;FIELDNAME&amp;gt;\d+/\d+/\d+\s+\d+:\d+)(?=,)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm hoping someone has seen this kind of thing before!&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 00:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48861#M11691</guid>
      <dc:creator>lautero</dc:creator>
      <dc:date>2012-05-11T00:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date code being interpreted incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48862#M11692</link>
      <description>&lt;P&gt;The &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; should not have a field-extractig regex in it. It should match the text just BEFORE the timestamp starts, but not the timestamp itself. &lt;/P&gt;

&lt;P&gt;Try this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^[^,]+,[^,]+,\s*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian &lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 06:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48862#M11692</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-11T06:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date code being interpreted incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48863#M11693</link>
      <description>&lt;P&gt;Thanks Kristian, I've given that a shot but it hasn't made any difference.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 06:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48863#M11693</guid>
      <dc:creator>lautero</dc:creator>
      <dc:date>2012-05-11T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date code being interpreted incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48864#M11694</link>
      <description>&lt;P&gt;Did you check this after a restart, and only on events that have been indexed after you made your changes? Because the events that are already in the indexed will not be affected by these changes.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 07:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48864#M11694</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-11T07:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date code being interpreted incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48865#M11695</link>
      <description>&lt;P&gt;could you post a couple of actual log events?&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 10:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-code-being-interpreted-incorrectly/m-p/48865#M11695</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-11T10:25:36Z</dc:date>
    </item>
  </channel>
</rss>

