<?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: Event Time Stamp: Day and Month Switched by Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455218#M78751</link>
    <description>&lt;P&gt;Gah! seems I can't add images or files with my trial account. Hoping someone can make sense of this without them.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 22:01:19 GMT</pubDate>
    <dc:creator>intelli2019</dc:creator>
    <dc:date>2019-07-02T22:01:19Z</dc:date>
    <item>
      <title>Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455217#M78750</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have 1 months worth of logs I am uploading to Splunk cloud manually as a trial for when our Enterprise license comes in.&lt;BR /&gt;
Splunk recognises most of the time stamps correctly and assigns the correct _time to them however some have the DD and MM switched. The log files with switched DD and MM time stamps are from 01/06/2019 - 08/06/2019.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
In events from the 10/06/2019 log the date time is picked up correctly as 10/06/2019 (see first screenshot)&lt;BR /&gt;
But in events from the 05/06/2019 log the date time is picket up in-correctly as 06/05/2019 (see second screenshot)&lt;/P&gt;

&lt;P&gt;I've attached the 05/06/2019 log which is getting the incorrect date format if anyone can take a look.&lt;/P&gt;

&lt;P&gt;How do I correct this so Splunk picks up the correct date i.e. dd/mm/yyyy?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;BR /&gt;
Nathan&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 21:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455217#M78750</guid>
      <dc:creator>intelli2019</dc:creator>
      <dc:date>2019-07-02T21:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455218#M78751</link>
      <description>&lt;P&gt;Gah! seems I can't add images or files with my trial account. Hoping someone can make sense of this without them.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 22:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455218#M78751</guid>
      <dc:creator>intelli2019</dc:creator>
      <dc:date>2019-07-02T22:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455219#M78752</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;

&lt;P&gt;Are you relying on automatic timestamp extraction for this ingest? If so I would recommend looking at being more explicit about telling Splunk how to interpret the date time information in your source logs - specifically, defining a TIME_FORMAT in the relevant sourcetype would be useful for you, something like this would interpret 05/06/2019 as you desire:&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d/%m/%Y &lt;BR /&gt;
&lt;STRONG&gt;(Note this is for reference only - you would likely want to include hour/min/sec in your definition as well)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You can find more information on explicitly defining timestamp extraction here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/Configuretimestamprecognition"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This info on how the timestamp processor work may be useful too:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/HowSplunkextractstimestamps"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps!&lt;/P&gt;

&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 00:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455219#M78752</guid>
      <dc:creator>eavent_splunk</dc:creator>
      <dc:date>2019-07-03T00:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455220#M78753</link>
      <description>&lt;P&gt;Hi Ed,&lt;BR /&gt;
Thanks for the reply.&lt;BR /&gt;
I tried creating a new sourcetype and adding TIME_FORMAT = %d/%m/%Y. Then re-uploaded the logs, however I get the same result.&lt;BR /&gt;
Any other ideas?&lt;BR /&gt;
Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 00:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455220#M78753</guid>
      <dc:creator>intelli2019</dc:creator>
      <dc:date>2019-07-03T00:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455221#M78754</link>
      <description>&lt;P&gt;It's weird because date stamps after 06/06/2019 in the new index get extracted correctly. It's only the ones on or before 06/06/2019 that get DD and MM get switched. The date format in the raw event is still in correct format.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 01:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455221#M78754</guid>
      <dc:creator>intelli2019</dc:creator>
      <dc:date>2019-07-03T01:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455222#M78755</link>
      <description>&lt;P&gt;I can't pretend to know the intricacies of the automatic timestamp extraction, but I do know it's not 100% reliable. I've seen this in live environments were suddenly logs stop coming in....except they are still coming in, but the day/month has been switched so the events are in the past or the future.&lt;/P&gt;

&lt;P&gt;Anyway on your issue, if your timestamp in the log does not start at the very beginning of each event/line, you'll need to set TIME_PREFIX as well. This is a regex that should match all characters BEFORE the timestamp.&lt;/P&gt;

&lt;P&gt;If you are able to comment a couple of lines of the working and non-working logs I might be able to take a look. Use the "code sample" formatting to make sure the original formatting is maintained, and ensure there's no sensitive data in there as well.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 01:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455222#M78755</guid>
      <dc:creator>eavent_splunk</dc:creator>
      <dc:date>2019-07-03T01:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Event Time Stamp: Day and Month Switched by Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455223#M78756</link>
      <description>&lt;P&gt;You sir are a legend. Adding the TIME_PREFIX worked!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 03:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Time-Stamp-Day-and-Month-Switched-by-Splunk/m-p/455223#M78756</guid>
      <dc:creator>intelli2019</dc:creator>
      <dc:date>2019-07-03T03:57:53Z</dc:date>
    </item>
  </channel>
</rss>

