<?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: Split multi-line events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19968#M2878</link>
    <description>&lt;P&gt;Not sure if there is a specific list, but any props related to line breaking, time parsing, or of type TRANSFORMS- are performed @ the indexing/full forwarder layer of your Splunk infrastructure.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2011 03:38:05 GMT</pubDate>
    <dc:creator>hazekamp</dc:creator>
    <dc:date>2011-06-01T03:38:05Z</dc:date>
    <item>
      <title>Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19961#M2871</link>
      <description>&lt;P&gt;I have a file that has multiple multi line events. Each event is broken up into "INFO: ---" or  "ERROR: ---"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR: ---
blahNewsLetter: N
birthdate: 1947-10-25
countryId: 1
createdOn: 2011-05-31 13:40:46
...
INFO: ---
blahNewsLetter: ~
birthdate: 0000-00-00
countryId: ~
createdOn: 2011-05-31 13:40:48
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dblog]
SHOULD_LINEMERGE = true
# force splunk to detec multiline events
BREAK_ONLY_BEFORE = (.*)(INFO|ERROR):
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/dblog.log]
disabled = false
index = blah
sourcetype = dblog
blacklist = (\.(gz|bz2|z|zip)$)
followTail = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work. It is splitting the file up into events that have lines similar to the "createdOn: 2011-05-31 13:40:48" lines.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;modifiedOn: 2011-05-31 13:40:48
postalCode: 1111
promoCode: ~
requestDetail: |-
  &amp;lt;request&amp;gt;
  &amp;lt;billToEmail&amp;gt;null&amp;lt;/billToEmail&amp;gt;
  &amp;lt;billToFirstName&amp;gt;Name&amp;lt;/billToFirstName&amp;gt;
  &amp;lt;billToLastName&amp;gt;Name&amp;lt;/billToLastName&amp;gt;
  &amp;lt;billToStreet1&amp;gt;null&amp;lt;/billToStreet1&amp;gt;
  &amp;lt;billToStreet2&amp;gt;null&amp;lt;/billToStreet2&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;createdOn: 2011-05-31 13:40:48
email: myemail@email.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated. And I have also tried using BREAK_ONLY_BEFORE_DATE = false with same result. This is currently on the forwarder.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19961#M2871</guid>
      <dc:creator>lcasey001</dc:creator>
      <dc:date>2020-09-28T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19962#M2872</link>
      <description>&lt;P&gt;lcasey001,&lt;/P&gt;

&lt;P&gt;I would recommend using LINE_BREAKER.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dblog]
SHOULD_LINEMERGE = false
# force splunk to detec multiline events
LINE_BREAKER = ([\r\n]+)(?:INFO|ERROR):
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Update:  These configurations need to be on your indexer.  I would also recommend modifying Splunk's date/time properties since there is not a timestamp in first 150 characters of your event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dblog]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?:INFO|ERROR):
TIME_PREFIX = createdOn:\s+
TIME_FORMAT = %Y-%m-%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2011 19:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19962#M2872</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-05-31T19:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19963#M2873</link>
      <description>&lt;P&gt;Made your recommended change, restarted the forwarder, and got the same result. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/31/11
3:31:17.000 PM  

    modifiedOn: 2011-05-31 15:31:17
    postalCode: 11111
    promoCode: ''
    requestDetail: |-
      &amp;lt;request&amp;gt;
      &amp;lt;email&amp;gt;email@email.net&amp;lt;/email&amp;gt;
      &amp;lt;userName&amp;gt;username&amp;lt;/userName&amp;gt;
      &amp;lt;firstName&amp;gt;firstname&amp;lt;/firstName&amp;gt;
      &amp;lt;lastName&amp;gt;lastname&amp;lt;/lastName&amp;gt;
      &amp;lt;language&amp;gt;en&amp;lt;/language&amp;gt;
Show all 18 lines
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2011 19:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19963#M2873</guid>
      <dc:creator>lcasey001</dc:creator>
      <dc:date>2011-05-31T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19964#M2874</link>
      <description>&lt;P&gt;These changes have been on the Universal Forwarder where the log file is hosted. I have other settings on the forwarder for other log files, mostly setting sourcetypes in the props.conf file. Should this all be done on the indexer?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 20:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19964#M2874</guid>
      <dc:creator>lcasey001</dc:creator>
      <dc:date>2011-05-31T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19965#M2875</link>
      <description>&lt;P&gt;Line breaking and time parsing are done @ the indexer or Full forwarder, not Universal Forwarder/Light Forwarder.  Please move these configurations to your indexer(s).&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 20:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19965#M2875</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-05-31T20:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19966#M2876</link>
      <description>&lt;P&gt;Thanks !!! That was it. It needed to be done on the indexer and not forwarder. So is there a list of things that needs to be done on the indexer vs forwarder regarding props.conf ?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 21:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19966#M2876</guid>
      <dc:creator>lcasey001</dc:creator>
      <dc:date>2011-05-31T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19967#M2877</link>
      <description>&lt;P&gt;Where can one obtain that list for future reference? I did not see anything in the props.conf.spec file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19967#M2877</guid>
      <dc:creator>lcasey001</dc:creator>
      <dc:date>2011-06-01T00:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split multi-line events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19968#M2878</link>
      <description>&lt;P&gt;Not sure if there is a specific list, but any props related to line breaking, time parsing, or of type TRANSFORMS- are performed @ the indexing/full forwarder layer of your Splunk infrastructure.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 03:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-multi-line-events/m-p/19968#M2878</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-06-01T03:38:05Z</dc:date>
    </item>
  </channel>
</rss>

