<?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 fix TimeStamp issue for two different types of events from same source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488033#M83536</link>
    <description>&lt;P&gt;This worked for me: &lt;/P&gt;

&lt;P&gt;I increased the &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; in props.conf to &lt;CODE&gt;90&lt;/CODE&gt;. and then I removed the subsecond from your datetime.xml file.&lt;/P&gt;

&lt;P&gt;The following is what worked for me. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
  &amp;lt;!-- Request Set Number: [444888] - Scheduled Run Date: [2020-03-05 16:45:22.0]  --&amp;gt;
  &amp;lt;define name="custom1" extract="year,month,day,hour,minute,second,"&amp;gt;
      &amp;lt;text&amp;gt;&amp;lt;![CDATA[\[(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;
   &amp;lt;!-- [Threat-11] 03/04 17:10:58,109, INFO --&amp;gt;
  &amp;lt;define name="custom2" extract="month,day,hour,minute,second,subsecond,"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[\s(\d{2})\/(\d{2})\s(\d{2}):(\d{2}):(\d{2}),(\d{3})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;

  &amp;lt;timePatterns&amp;gt;
       &amp;lt;use name="custom1"/&amp;gt;
       &amp;lt;use name="custom2"/&amp;gt;
  &amp;lt;/timePatterns&amp;gt;

  &amp;lt;datePatterns&amp;gt;
        &amp;lt;use name="custom1"/&amp;gt;
        &amp;lt;use name="custom2"/&amp;gt;
  &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Mar 2020 02:56:49 GMT</pubDate>
    <dc:creator>zacharychristen</dc:creator>
    <dc:date>2020-03-06T02:56:49Z</dc:date>
    <item>
      <title>How to fix TimeStamp issue for two different types of events from same source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488032#M83535</link>
      <description>&lt;P&gt;A single source have two different types of events and two different types of timestamps.&lt;/P&gt;

&lt;P&gt;raw event-1:  Request Set Number: [1234567] - Scheduled Run Date: [2020-03-05 16:10:37.0] -source -values [{ all values} 5 more lines of data]&lt;BR /&gt;
raw-event-2:  [Threat-123] 03/05 17:30:05,159, INFORMATION, [process name, process number]&lt;/P&gt;

&lt;P&gt;I tried with xml file and props.conf but is didn't fix the issue&lt;/P&gt;

&lt;P&gt;XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
&amp;lt;!-- Request Set Number: [444888] - Scheduled Run Date: [2020-03-05 16:45:22.0]  --&amp;gt;
&amp;lt;define name="_datetimeformat1" extract="year, month, day, hour, minute, second , subsecond"&amp;gt;
&amp;lt;text&amp;gt;\[(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2}).(\d{1,4})\]&amp;lt;/text&amp;gt;
&amp;lt;/define&amp;gt;
&amp;lt;!-- [Threat-11] 03/04 17:10:58,109, INFO --&amp;gt;
&amp;lt;define name="_datetimeformat2" extract="month, day, hour, minute, second, subsecond"&amp;gt;
&amp;lt;text&amp;gt;\s(\d{2})\/(\d{2})\s(\d{2}):(\d{2}):(\d{2}),(\d{3})&amp;lt;/text&amp;gt;
&amp;lt;/define&amp;gt;
&amp;lt;timePatterns&amp;gt;
&amp;lt;use name="_datetimeformat1"/&amp;gt;
&amp;lt;use name="_datetimeformat2"/&amp;gt;
&amp;lt;/timePatterns&amp;gt;
&amp;lt;datePatterns&amp;gt;
&amp;lt;use name="_datetimeformat1"/&amp;gt;
&amp;lt;use name="_datetimeformat2"/&amp;gt;
&amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my sourcetype]
DATETIME_CONFIG = /etc/apps/SourcetypeName-datetime.xml
SHOULD_LINEMERGE=false
LINE_BREAKER = (Request\sSet\sNumber:\s\[\d+\]\s-\s\w+\W\w+\W\w+:\s\[|\[Threat-\d{1,5}\]\s)
MAX_TIMESTAMP_LOOKAHEAD=60
MAX_DAYS_AGO = 45
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am still getting this error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0500 WARN  DateParserVerbose - Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD (128) characters of event. Defaulting to timestamp of previous event (Thu Mar  5 16:30:37 2020). Context: source::
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can some one please help me on this issue..&lt;/P&gt;

&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488032#M83535</guid>
      <dc:creator>snallam123</dc:creator>
      <dc:date>2020-03-05T22:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TimeStamp issue for two different types of events from same source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488033#M83536</link>
      <description>&lt;P&gt;This worked for me: &lt;/P&gt;

&lt;P&gt;I increased the &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; in props.conf to &lt;CODE&gt;90&lt;/CODE&gt;. and then I removed the subsecond from your datetime.xml file.&lt;/P&gt;

&lt;P&gt;The following is what worked for me. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
  &amp;lt;!-- Request Set Number: [444888] - Scheduled Run Date: [2020-03-05 16:45:22.0]  --&amp;gt;
  &amp;lt;define name="custom1" extract="year,month,day,hour,minute,second,"&amp;gt;
      &amp;lt;text&amp;gt;&amp;lt;![CDATA[\[(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;
   &amp;lt;!-- [Threat-11] 03/04 17:10:58,109, INFO --&amp;gt;
  &amp;lt;define name="custom2" extract="month,day,hour,minute,second,subsecond,"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[\s(\d{2})\/(\d{2})\s(\d{2}):(\d{2}):(\d{2}),(\d{3})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;

  &amp;lt;timePatterns&amp;gt;
       &amp;lt;use name="custom1"/&amp;gt;
       &amp;lt;use name="custom2"/&amp;gt;
  &amp;lt;/timePatterns&amp;gt;

  &amp;lt;datePatterns&amp;gt;
        &amp;lt;use name="custom1"/&amp;gt;
        &amp;lt;use name="custom2"/&amp;gt;
  &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Mar 2020 02:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488033#M83536</guid>
      <dc:creator>zacharychristen</dc:creator>
      <dc:date>2020-03-06T02:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TimeStamp issue for two different types of events from same source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488034#M83537</link>
      <description>&lt;P&gt;I have the same error&lt;/P&gt;

&lt;P&gt;DateParserVerbose - Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD (128) characters of event. Defaulting to timestamp of previous event.&lt;/P&gt;

&lt;P&gt;looks like splunk is not picking anything from props.conf.  MAX_TIMESTAMP_LOOKAHEAD is still 128 which is a default one.&lt;/P&gt;

&lt;P&gt;I did all these in master server, Do i need to update in deployment server?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-TimeStamp-issue-for-two-different-types-of-events/m-p/488034#M83537</guid>
      <dc:creator>snallam123</dc:creator>
      <dc:date>2020-09-30T04:30:36Z</dc:date>
    </item>
  </channel>
</rss>

