<?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 How to correct timestamp recognition that is currently skewed due to result of class &amp;quot;java.util.logging.Logger&amp;quot; output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254335#M48838</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;We have an event coming in from our logs below with this stamp right at the beginning of our logs.&lt;BR /&gt;
That is good...&lt;/P&gt;

&lt;P&gt;Event TIme Stamp&lt;BR /&gt;
11/30/15:11:16 AM &lt;/P&gt;

&lt;P&gt;Unfortunately Splunk gets confused on the Year and believes it is the start of the time&lt;BR /&gt;
stamp.  See below 15 = 3:00 PM. I think I just need to somehow get rid of the colon in the &lt;BR /&gt;
above data after the year and get a space in there before it is read and I think I will be good.  &lt;/P&gt;

&lt;P&gt;Would I need a props with a SED statement to strip it out on indexing? Any ideas to support&lt;BR /&gt;
my theory would be greatly helpful. &lt;/P&gt;

&lt;P&gt;Splunk Output&lt;BR /&gt;
11/30/15 3:11:16.000 PM&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Daniel MacGillivray&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 14:50:07 GMT</pubDate>
    <dc:creator>dmacgillivray</dc:creator>
    <dc:date>2015-12-01T14:50:07Z</dc:date>
    <item>
      <title>How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254335#M48838</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;We have an event coming in from our logs below with this stamp right at the beginning of our logs.&lt;BR /&gt;
That is good...&lt;/P&gt;

&lt;P&gt;Event TIme Stamp&lt;BR /&gt;
11/30/15:11:16 AM &lt;/P&gt;

&lt;P&gt;Unfortunately Splunk gets confused on the Year and believes it is the start of the time&lt;BR /&gt;
stamp.  See below 15 = 3:00 PM. I think I just need to somehow get rid of the colon in the &lt;BR /&gt;
above data after the year and get a space in there before it is read and I think I will be good.  &lt;/P&gt;

&lt;P&gt;Would I need a props with a SED statement to strip it out on indexing? Any ideas to support&lt;BR /&gt;
my theory would be greatly helpful. &lt;/P&gt;

&lt;P&gt;Splunk Output&lt;BR /&gt;
11/30/15 3:11:16.000 PM&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Daniel MacGillivray&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254335#M48838</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2015-12-01T14:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254336#M48839</link>
      <description>&lt;P&gt;As I mentioned in a comment above, SEDCMD is evaluated after timestamp extraction, so you can't fix this via transform.  You can, however, explicitly tell Splunk what the time format is.  (&lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;Details on How Indexing Works&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_PREFIX=^
TIME_FORMAT=%m/%d/%I:%M:%S %p
MAX_TIMESTAMP_LOOKAHEAD=17
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This tells Splunk that the timestamp comes at the beginning of the event (TIME_PREFIX), it has the above strftime format, and it extends, at most, 17 characters into the event.  Everything it needs to know to get the timestamp right.  &lt;/P&gt;

&lt;P&gt;This may still not work, as without a year it's not a valid timestamp, so Splunk may still do funny things with it.  The real fix is to get your developers to log in a non-ridiculous format.  (What Java devs have against ISO standard timestamps, I'll never figure out)&lt;/P&gt;

&lt;P&gt;I would also set a couple other things:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_PREFIX=^
TIME_FORMAT=%m/%d/%I:%M:%S %p
MAX_TIMESTAMP_LOOKAHEAD=17
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)(?:\d{2}\/\d{2}\/\d{2}:\d{2}:\d{2})
TRUNCATE=999999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This further tells Splunk how to handle the incoming events.  Specifically, we're telling Splunk where events begin and end explicitly, so it doesn't have to figure it out.  (You'll appreciate this when it stops Splunk from doing bad things with stacktraces)&lt;/P&gt;

&lt;P&gt;Ideally, you should be setting all of these for every new sourcetype you ingest whenever possible.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254336#M48839</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2015-12-01T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254337#M48840</link>
      <description>&lt;P&gt;Thanks Emiller, All very helpful.  I will attempt in dev and let you know how it worked out. Unfortunately it is a third party software we are dealing with in this case. Good point on the ISO stamp.  I hope to carry the torch and help others down the road like you have !&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254337#M48840</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2015-12-01T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254338#M48841</link>
      <description>&lt;P&gt;SEDCMD can be used to change the raw data but not before it is used to determine a timestamp (my previous answer was in error).&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254338#M48841</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-12-01T15:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254339#M48842</link>
      <description>&lt;P&gt;Thanks for jumping in on this as it was much appreciated !! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254339#M48842</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2015-12-01T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254340#M48843</link>
      <description>&lt;P&gt;Good luck!  Depending on how the 3rd-party app is set up, you may still be able to define the logging format.  (It may just be defined in a config file which you can update)  Worth looking into.  &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254340#M48843</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2015-12-01T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254341#M48844</link>
      <description>&lt;P&gt;Thanks Emiller42.. It is working now !! Good way to end the day !!  &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254341#M48844</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2015-12-01T21:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct timestamp recognition that is currently skewed due to result of class "java.util.logging.Logger" output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254342#M48845</link>
      <description>&lt;P&gt;P.S. I used your added LINE_BREAKER settings.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-timestamp-recognition-that-is-currently-skewed/m-p/254342#M48845</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2015-12-01T21:43:13Z</dc:date>
    </item>
  </channel>
</rss>

