<?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: Splunk automatically splits a event into two, because of two dates in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391740#M70000</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log4j]
 SHOULD_LINEMBER=false
 LINE_BREAKER=([\r\n]+)(?=\s*\d{4}-\d{2}-\d{2}\s*\d+)
 TIME_PREFIX=^
 TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N %z
 MAX_TIMESTAMP_LOOKAHEAD=29
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Apr 2019 15:59:48 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-04-08T15:59:48Z</dc:date>
    <item>
      <title>Splunk automatically splits a event into two, because of two dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391737#M69997</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I tried a solution suggested online for a similar issue, but it didn't fix the problem&lt;/P&gt;

&lt;P&gt;The below extract from the log is a single event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 2019-03-26 12:03:28.753 +0000 INFO  [zzz] [yyy] [] [] [rrId:] []  Message
----------------------------
ID: 7
Response-Code: 200
Encoding: UTF-8
Content-Type: text/xml;charset=utf-8
Headers: {Connection=[close], Content-Type=[text/xml;charset=utf-8], Date=[Tue, 26 Mar 2019 12:03:28 GMT],
Show less
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it results like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 2019-03-26 12:03:28.753 +0000 INFO  [zzz] [yyy] [] [] [rrId:] []  Message
 ----------------------------
 ID: 7
 Response-Code: 200
 Encoding: UTF-8
 Content-Type: text/xml;charset=utf-8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In 2 lines&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Headers: {Connection=[close], Content-Type=[text/xml;charset=utf-8], Date=[Tue, 26 Mar 2019 12:03:28 GMT],
         Show less
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We have a cluster environment so I updated the props here - opt/splunk/etc/master-apps/_cluster/local/props.conf with the below&lt;BR /&gt;
[log4j]&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD = 19&lt;/P&gt;

&lt;P&gt;I pushed the change to the peers and restarted all the indexers&lt;/P&gt;

&lt;P&gt;Any thoughts to fix this issue please?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391737#M69997</guid>
      <dc:creator>sre_sl</dc:creator>
      <dc:date>2020-09-29T23:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk automatically splits a event into two, because of two dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391738#M69998</link>
      <description>&lt;P&gt;Try this for your props.conf (sourcetype definition)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log4j]
SHOULD_LINEMBER=false
LINE_BREAKER=([\r\n]+)(?=\d{4}-\d{2}-\d{2})
TIME_PREFIX=^
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N %z
MAX_TIMESTAMP_LOOKAHEAD=29
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391738#M69998</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-05T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk automatically splits a event into two, because of two dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391739#M69999</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;It works partially but creates another issue.&lt;/P&gt;

&lt;P&gt;The below shows as one event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-04-08 09:51:11.791 +0000 INFO   INFO  [[zzz] [yyy] [] [] [rrId:] []  Message In
----------------------------
ID: 3
Response-Code: 200
Encoding: UTF-8
Content-Type: text/xml;charset=utf-8
Headers: {Connection=[close], Content-Type=[text/xml;charset=utf-8], Date=[Mon, 08 Apr 2019 09:51:11 GMT]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But what happens is the next message is also in the same event, which should be a separate event&lt;/P&gt;

&lt;H2&gt;2019-04-08 09:51:11.727 +0000 INFO  [[zzz] [yyy] [] [] [rrId:] []  Message Out&lt;/H2&gt;

&lt;P&gt;ID: 3&lt;BR /&gt;
Address: xxxx&lt;BR /&gt;
Encoding: UTF-8&lt;BR /&gt;
Http-Method: POST&lt;BR /&gt;
Content-Type: text/xml&lt;BR /&gt;
Headers: {Accept=[&lt;EM&gt;/&lt;/EM&gt;], Connection=[close], SOAPAction=[""]}&lt;/P&gt;

&lt;H2&gt;2019-04-08 09:51:11.791 +0000 INFO   INFO  [[zzz] [yyy] [] [] [rrId:] []  Message In&lt;/H2&gt;

&lt;P&gt;ID: 3&lt;BR /&gt;
Response-Code: 200&lt;BR /&gt;
Encoding: UTF-8&lt;BR /&gt;
Content-Type: text/xml;charset=utf-8&lt;BR /&gt;
Headers: {Connection=[close], Content-Type=[text/xml;charset=utf-8], Date=[Mon, 08 Apr 2019 09:51:11 GMT]&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391739#M69999</guid>
      <dc:creator>sre_sl</dc:creator>
      <dc:date>2019-04-08T10:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk automatically splits a event into two, because of two dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391740#M70000</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log4j]
 SHOULD_LINEMBER=false
 LINE_BREAKER=([\r\n]+)(?=\s*\d{4}-\d{2}-\d{2}\s*\d+)
 TIME_PREFIX=^
 TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3N %z
 MAX_TIMESTAMP_LOOKAHEAD=29
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 15:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-automatically-splits-a-event-into-two-because-of-two/m-p/391740#M70000</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-08T15:59:48Z</dc:date>
    </item>
  </channel>
</rss>

