<?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 date incorrectly in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53874#M13133</link>
    <description>&lt;P&gt;The file to edit or add is &lt;CODE&gt;props.conf&lt;/CODE&gt; (for instance in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;Let's say the sourcetype for your log is "mylog". In that case you'll need to add this to &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mylog]
TIME_FORMAT = %d/%m/%y - %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These changes will take effect on new events that are indexed after restarting Splunk.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2011 09:04:43 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-08-05T09:04:43Z</dc:date>
    <item>
      <title>Splunk parsing date incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53873#M13132</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Sorry if this has been asked before but I could do with a quick straightforward answer for this one.&lt;/P&gt;

&lt;P&gt;We have a text based logfile which has each line starting with dd/MM/yy - HH:mm:ss (05/08/11 - 09:51:32)&lt;/P&gt;

&lt;P&gt;The problem is that splunk is reading the date as MM/dd/yy, so our logs are all over the place, over the last 3 days we now have logs for 8th march, 8th april, and 8th may.... &lt;/P&gt;

&lt;P&gt;The logs are collected by a Universal forwarder on a windows server. &lt;/P&gt;

&lt;P&gt;Which config file do I need to edit and what do I need to edit it with to get this to start parsing the date correctly? &lt;/P&gt;

&lt;P&gt;Many Thanks, &lt;BR /&gt;
Fraser&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 08:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53873#M13132</guid>
      <dc:creator>fraserhardy</dc:creator>
      <dc:date>2011-08-05T08:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing date incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53874#M13133</link>
      <description>&lt;P&gt;The file to edit or add is &lt;CODE&gt;props.conf&lt;/CODE&gt; (for instance in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;Let's say the sourcetype for your log is "mylog". In that case you'll need to add this to &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mylog]
TIME_FORMAT = %d/%m/%y - %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These changes will take effect on new events that are indexed after restarting Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53874#M13133</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-08-05T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing date incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53875#M13134</link>
      <description>&lt;P&gt;Thanks for the quick response. I have just tried that however the latest logs are still coming in with the incorrect date. &lt;BR /&gt;
I restarted both splunk server and the universal forwarder. &lt;/P&gt;

&lt;P&gt;Should the .conf file be put on the splunk server or the server with the universal forwarder? or both? &lt;/P&gt;

&lt;P&gt;I have put this in the props file. &lt;/P&gt;

&lt;P&gt;[source::V:\MGR1.1\system\SYSTEM.LOG]&lt;BR /&gt;
TIME_FORMAT = %d/%m/%y - %H:%M:%S&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 10:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53875#M13134</guid>
      <dc:creator>fraserhardy</dc:creator>
      <dc:date>2011-08-05T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing date incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53876#M13135</link>
      <description>&lt;P&gt;in your case , props.conf should be put on indexer not on UF&lt;BR /&gt;
(&lt;A href="http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F"&gt;http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 10:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53876#M13135</guid>
      <dc:creator>dmlee</dc:creator>
      <dc:date>2011-08-05T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing date incorrectly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53877#M13136</link>
      <description>&lt;P&gt;Just to update.. I got it working by replacing the drive letter in the source. &lt;/P&gt;

&lt;P&gt;[source::...MGR1.1\system\SYSTEM.LOG]&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-parsing-date-incorrectly/m-p/53877#M13136</guid>
      <dc:creator>fraserhardy</dc:creator>
      <dc:date>2011-08-05T11:39:03Z</dc:date>
    </item>
  </channel>
</rss>

