<?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: dd/mm/yyyy is being returned as mm/dd/yyyy in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33207#M5926</link>
    <description>&lt;P&gt;Just to check - you are sure that Splunk interprets the date wrong, not just that it's formatting the date wrong when it outputs the events? I.e. these events are really stored in Splunk's index as being from January 11th, not November 1st?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2011 19:10:41 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-12-12T19:10:41Z</dc:date>
    <item>
      <title>dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33206#M5925</link>
      <description>&lt;P&gt;I've been through the forums and this has been asked many times, but I'm not getting anywhere with it.  I'm admitting defeat and asking for help&lt;/P&gt;

&lt;P&gt;We have a log from a host.  The host is in this format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01/11/11 00:18:05 [ 1] - I) Connected
01/11/11 00:18:05 [ 1] - I) Sending NUA
01/11/11 00:18:05 [ 1] - I) Sarian B: CALL NBMS_HOST01
01/11/11 00:18:06 [ 1] - I) Send data
01/11/11 00:18:06 [ 1] - I) Packet = 1. Dial_count1 = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The date above is 1st November, not 11th January.  The file is saved at:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;c:\trace.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is a months worth of data in each file, starting with the 1st of the month.  I haven't managed to tell Splunk that the date is in d/m/Y format instead of m/d/Y format. The props.conf file on both the windows and linux boxes contain:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::"c:\\trace.log"]
TIME_FORMAT = %d/%m/%Y

[source="c:\trace.log"]
TIME_FORMAT = %d/%m/%Y

[source="c:\\trace.log"]
TIME_FORMAT = %d/%m/%Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;datetime.xml on both the server and windows forwarder has:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;define name="_masheddate3" extract="day, month, year"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?:^|source::).*?(?&amp;lt;!\d|\d\.)([012]\d|3[01])(0\d|1[012])(?:20)?([901]\d)(?!\d| {2,})]]&amp;gt;&amp;lt;/text&amp;gt;
&amp;lt;/define&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;added and in datePatterns _masheddate3 is added.&lt;/P&gt;

&lt;P&gt;(props.conf contains 3 items as I'm trying to get any combination to pickup) I think that is all I need to do, except the results on the web page show:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11/01/2011 00:44:09.000 01/11/11 00:44:09 [ 1] - I) Sarian B: CALL NBMS_HOST01
host=RSCA6976A   Options|  sourcetype=trace-too_small   Options|  source=C:\trace.log   Options
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see its still picking up US instead of UK date format.  First datetime is Splunk Generated - second datetime is data from the log&lt;/P&gt;

&lt;P&gt;I'm clearly doing something wrong and would appreciate any ideas as I don't think I'm doing anything too complicated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 16:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33206#M5925</guid>
      <dc:creator>wayneevans</dc:creator>
      <dc:date>2011-12-12T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33207#M5926</link>
      <description>&lt;P&gt;Just to check - you are sure that Splunk interprets the date wrong, not just that it's formatting the date wrong when it outputs the events? I.e. these events are really stored in Splunk's index as being from January 11th, not November 1st?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 19:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33207#M5926</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-12T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33208#M5927</link>
      <description>&lt;P&gt;It possibly is being displayed wrong and is correct in the db.  From what I can see on the screen it my assumption is correct.&lt;/P&gt;

&lt;P&gt;Screenshot below:&lt;BR /&gt;
&lt;A href="http://i42.tinypic.com/2zp5jjs.png"&gt;http://i42.tinypic.com/2zp5jjs.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I am using en-GB, but I have tried en-US on the URL too.  I get the same display.&lt;/P&gt;

&lt;P&gt;The data on the screenshot I've manually added too while I'm testing, which is why there is some future dates.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 20:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33208#M5927</guid>
      <dc:creator>wayneevans</dc:creator>
      <dc:date>2011-12-12T20:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33209#M5928</link>
      <description>&lt;P&gt;Well it could be that you state the year portion of the timestamp wrong &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d/%m/%Y    21/04/2011
TIME_FORMAT = %d/%m/%y    21/04/11
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/kristian&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 21:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33209#M5928</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-12-12T21:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33210#M5929</link>
      <description>&lt;P&gt;Genius!  Lower-case y&lt;/P&gt;

&lt;P&gt;For my benefit when I come here next time forgetting what I've done, on the Server:&lt;BR /&gt;
/opt/splunk/etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[source::c:\CCard\trace.log]&lt;BR /&gt;
TIME_FORMAT = %d/%m/%y %H:%M%:%S&lt;/P&gt;

&lt;P&gt;Thank you Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2011 11:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33210#M5929</guid>
      <dc:creator>wayneevans</dc:creator>
      <dc:date>2011-12-13T11:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: dd/mm/yyyy is being returned as mm/dd/yyyy</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33211#M5930</link>
      <description>&lt;P&gt;you're most welcome. /k&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2011 11:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dd-mm-yyyy-is-being-returned-as-mm-dd-yyyy/m-p/33211#M5930</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-12-13T11:58:47Z</dc:date>
    </item>
  </channel>
</rss>

