<?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: How to index two different datestamps in a single sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-two-different-datestamps-in-a-single-sourcetype/m-p/141775#M29056</link>
    <description>&lt;P&gt;You can do this with using &lt;CODE&gt;datetime.xml&lt;/CODE&gt; as indicated in this blog post:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2015 13:30:21 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-03T13:30:21Z</dc:date>
    <item>
      <title>How to index two different datestamps in a single sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-two-different-datestamps-in-a-single-sourcetype/m-p/141774#M29055</link>
      <description>&lt;P&gt;We had logs initially with timestamp: &lt;CODE&gt;[05/18/15 6:00:02.3898 AM]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;With the latest release, the timestamp in logs changed to &lt;CODE&gt;[05/18/15 6:00:02.3898]&lt;/CODE&gt;. There is no local equivalent for time (AM or PM). &lt;/P&gt;

&lt;P&gt;indexes.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
TIME_FORMAT = %m/%d/%y %H:%M:%S.%4N %p
MAX_TIMESTAMP_LOOKAHEAD = 40
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\n\r]+)\[\d+\/\d+\/\d+\s+\d+\:\d+\:\d+\.\d+\s*\w*\]
TRUNCATE = 20000
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But we wanted to index a few more old logs along with new ones with new timestamp format. What can we modify in the indexes.conf for TIME_FORMAT, or should we use any other customization? This is becoming very expensive for us while indexing, as it slows down spending time parsing on these logs. And I feel the WARN messages I see in splunkd.log are due to the above change in log time stamp formats. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07-29-2015 13:42:27.889 -0700 WARN  DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Sun Jul 26 23:48:00 2015). 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;New log examples :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[07/26/15 0:00:13.2596] ABC {067}: &amp;lt;67afc72a-4b5b-4e07-a458-eed2b7dc30b2&amp;gt;Abc.Efg("xyz") by jkin/xyz/7bb07297-ffcc-49ab-bb0e-5b9536ab3eb6. ,&amp;lt;0ms&amp;gt;

[07/26/15 0:00:13.3220] ABC {067}: &amp;lt;c8e592fa-df82-4247-88a0-2e819b7ca74c&amp;gt;Abc.Efg(77) by jking/xyz/7bb07297-ffcc-49ab-bb0e-5b9536ab3eb6. ,&amp;lt;406ms&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;old Log examples :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[05/18/15 6:00:02.4210 AM] ABC {614}: Abc.Efg("0pk1") by 1ml3/abc/dbc910c1-0958-46d2-a497-e19c91e72408. ******** (766 MB)/35 Objects
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 22:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-two-different-datestamps-in-a-single-sourcetype/m-p/141774#M29055</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2015-07-29T22:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to index two different datestamps in a single sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-two-different-datestamps-in-a-single-sourcetype/m-p/141775#M29056</link>
      <description>&lt;P&gt;You can do this with using &lt;CODE&gt;datetime.xml&lt;/CODE&gt; as indicated in this blog post:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 13:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-two-different-datestamps-in-a-single-sourcetype/m-p/141775#M29056</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T13:30:21Z</dc:date>
    </item>
  </channel>
</rss>

