<?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 Why is Splunk converting my timestamp to DD/MM/YY instead of MM/DD/YY? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274390#M52629</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I have this problem in Splunk : &lt;/P&gt;

&lt;P&gt;in my log i have time setup as : &lt;CODE&gt;12.07.2016 17:20:30,474&lt;/CODE&gt;  but Splunk is converting it to &lt;CODE&gt;07/12/16&lt;/CODE&gt;, when it should be &lt;CODE&gt;12/07/16&lt;/CODE&gt;. What can I do to correct it? Logs are in these files are in xml format . &lt;/P&gt;

&lt;P&gt;This is how it is looking in Splunk: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;7/12/16
5:20:30.474 PM  
&amp;lt;unspecified&amp;gt;10.0.6.32&amp;lt;unspecified&amp;gt;10.0.6.32
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Dec 2016 22:28:19 GMT</pubDate>
    <dc:creator>jmajumdar</dc:creator>
    <dc:date>2016-12-07T22:28:19Z</dc:date>
    <item>
      <title>Why is Splunk converting my timestamp to DD/MM/YY instead of MM/DD/YY?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274390#M52629</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I have this problem in Splunk : &lt;/P&gt;

&lt;P&gt;in my log i have time setup as : &lt;CODE&gt;12.07.2016 17:20:30,474&lt;/CODE&gt;  but Splunk is converting it to &lt;CODE&gt;07/12/16&lt;/CODE&gt;, when it should be &lt;CODE&gt;12/07/16&lt;/CODE&gt;. What can I do to correct it? Logs are in these files are in xml format . &lt;/P&gt;

&lt;P&gt;This is how it is looking in Splunk: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;7/12/16
5:20:30.474 PM  
&amp;lt;unspecified&amp;gt;10.0.6.32&amp;lt;unspecified&amp;gt;10.0.6.32
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274390#M52629</guid>
      <dc:creator>jmajumdar</dc:creator>
      <dc:date>2016-12-07T22:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk converting my timestamp to DD/MM/YY instead of MM/DD/YY?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274391#M52630</link>
      <description>&lt;P&gt;Try something like this (you will need to substitue the right time format variables for your needs)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval epochtime=strptime(eventTimeStamp, "%H:%M:%S.%3Q %z %Y-%m-%d")|eval desired_time=strftime(epochtime, "%I:%M:%S.%3Q %p %m/%d/%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 23:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274391#M52630</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-12-07T23:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk converting my timestamp to DD/MM/YY instead of MM/DD/YY?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274392#M52631</link>
      <description>&lt;P&gt;Do you mean the displayed time in the GUI? As Splunk wont rewrite your timestamp. If you mean the way it is displayed in the GUI, this is likely due to the region settings for your language.&lt;BR /&gt;&lt;BR /&gt;
Otherwise, it could be that your time stamp is being read incorrectly and you need to specify the strptime format as noted by DBcase, or in props.conf where you ingest the file.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 23:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274392#M52631</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2016-12-07T23:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk converting my timestamp to DD/MM/YY instead of MM/DD/YY?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274393#M52632</link>
      <description>&lt;P&gt;Added this to props.conf seem to resolve my issue : DATETIME_CONFIG=CURRENT&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 17:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-converting-my-timestamp-to-DD-MM-YY-instead-of-MM/m-p/274393#M52632</guid>
      <dc:creator>jmajumdar</dc:creator>
      <dc:date>2016-12-08T17:37:32Z</dc:date>
    </item>
  </channel>
</rss>

