<?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: Line break involving CRLF in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233764#M45570</link>
    <description>&lt;P&gt;Can you share a sanitized sample of the raw data? Either include it here within as a code element, or via pastebin (or similar).&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2016 21:07:15 GMT</pubDate>
    <dc:creator>jsie_splunk</dc:creator>
    <dc:date>2016-11-20T21:07:15Z</dc:date>
    <item>
      <title>Line break involving CRLF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233761#M45567</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have JSON msgs in my log which has Carriage Return Line Feed character at the end of each line and the next line. &lt;/P&gt;

&lt;P&gt;It looks as follows.. &lt;/P&gt;

&lt;P&gt;Line 1: "Message 1......." [CRLF] &lt;BR /&gt;
Line 2: [CRLF]&lt;BR /&gt;
Line 3 : " message 2......"[ CRLF]&lt;BR /&gt;
Line 4: [CRLF] &lt;BR /&gt;
Line 5: " Message 3 .... " [ CRLF] &lt;/P&gt;

&lt;P&gt;I've configured my props.conf as &lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = [\r\n]+ &lt;BR /&gt;
KV_MODE= json&lt;BR /&gt;
N0_BINARY_CHECK=1 &lt;/P&gt;

&lt;P&gt;If I view my logs from UI, few of my events are single lines and others are combination of two lines, three lines  or even  more.  Can some one help me fix this. What is the regex we must use to match CRLF  at the end of line and in the next line ( this line is empty) &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233761#M45567</guid>
      <dc:creator>nithin204</dc:creator>
      <dc:date>2020-09-29T11:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Line break involving CRLF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233762#M45568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The LINE_BREAKER regex requires a capture group to tell Splunk what to discard. Have you tried this as your regular expression?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 20:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233762#M45568</guid>
      <dc:creator>jsie_splunk</dc:creator>
      <dc:date>2016-11-20T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line break involving CRLF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233763#M45569</link>
      <description>&lt;P&gt;Yes jsie, I did add the capture group in my regex. It didn't work&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 20:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233763#M45569</guid>
      <dc:creator>nithin204</dc:creator>
      <dc:date>2016-11-20T20:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Line break involving CRLF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233764#M45570</link>
      <description>&lt;P&gt;Can you share a sanitized sample of the raw data? Either include it here within as a code element, or via pastebin (or similar).&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 21:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233764#M45570</guid>
      <dc:creator>jsie_splunk</dc:creator>
      <dc:date>2016-11-20T21:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line break involving CRLF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233765#M45571</link>
      <description>&lt;P&gt;1)  ##SPlunkFileHeader## ************************* LF&lt;BR /&gt;
2) {"name": *****&lt;STRONG&gt;&lt;EM&gt;Json msg&lt;/EM&gt;&lt;/STRONG&gt;***** "} Destination= ' &amp;lt; value of field from header&amp;gt; ' LF&lt;BR /&gt;
3) CR LF &lt;BR /&gt;
4) { "client-name":******* ,Json msg&amp;gt;******"} Destination = ' Value' LF&lt;BR /&gt;
5) CR LF &lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;There is  a LF after every line and the next line has CR LF &lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 14:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-break-involving-CRLF/m-p/233765#M45571</guid>
      <dc:creator>nithin204</dc:creator>
      <dc:date>2016-11-26T14:58:56Z</dc:date>
    </item>
  </channel>
</rss>

