<?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 ignoring LINE_BREAKER in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224985#M44005</link>
    <description>&lt;P&gt;The sourcetype definition in your screenshot does not match what you list under etc/system/local/props.conf on the indexer nodes!? Looks like you have defined the sourcetype in the app called "AppsBrowser", can you share the props.conf file from etc/apps/appsBrowser/local, please?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 19:13:50 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2016-01-13T19:13:50Z</dc:date>
    <item>
      <title>splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224983#M44003</link>
      <description>&lt;P&gt;I've configured a source type in &lt;CODE&gt;props.conf&lt;/CODE&gt; with &lt;CODE&gt;LINE_BREAKER = (\n+)&lt;/CODE&gt; to remove the &lt;CODE&gt;\r&lt;/CODE&gt; from the default value. This was done so that we can send multi-line events using &lt;CODE&gt;\r&lt;/CODE&gt; as the delimiter between lines, and &lt;CODE&gt;\n&lt;/CODE&gt; as the delimiter between events.&lt;BR /&gt;
The problem however is that splunk is still breaking messages into multiple events on the &lt;CODE&gt;\r&lt;/CODE&gt; character.&lt;/P&gt;

&lt;P&gt;Any ideas why?&lt;/P&gt;

&lt;P&gt;Here's an example.&lt;BR /&gt;
This screenshot is the &lt;CODE&gt;tcpdump&lt;/CODE&gt; output of a 2-line message, where the second line should be &lt;CODE&gt;this is line 2&lt;/CODE&gt;.&lt;BR /&gt;
&lt;IMG src="http://i.imgur.com/Tnx9DMS.png" alt="" /&gt;&lt;/P&gt;

&lt;P&gt;Here's the event as shown by the search app.&lt;BR /&gt;
&lt;IMG src="http://i.imgur.com/A4XoTEY.png" alt="" /&gt;&lt;/P&gt;

&lt;P&gt;Here's the active sourcetype configuration:&lt;BR /&gt;
&lt;IMG src="http://i.imgur.com/1RkHjOA.png" alt="" /&gt;&lt;BR /&gt;
The &lt;CODE&gt;etc/system/local/props.conf&lt;/CODE&gt; on the indexer nodes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
LINE_BREAKER = (\n+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 19:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224983#M44003</guid>
      <dc:creator>phemmer</dc:creator>
      <dc:date>2016-01-13T19:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224984#M44004</link>
      <description>&lt;P&gt;Hi there phemmer,&lt;/P&gt;

&lt;P&gt;Would you mind to paste the sample data ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 19:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224984#M44004</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-01-13T19:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224985#M44005</link>
      <description>&lt;P&gt;The sourcetype definition in your screenshot does not match what you list under etc/system/local/props.conf on the indexer nodes!? Looks like you have defined the sourcetype in the app called "AppsBrowser", can you share the props.conf file from etc/apps/appsBrowser/local, please?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 19:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224985#M44005</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-01-13T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224986#M44006</link>
      <description>&lt;P&gt;The Admin manual says LINE_BREAKER should only be used when SHOULD_LINEMERGE=false.  It also says BREAK_ONLY_BEFORE only applies if SHOULD_LINEMERGE=true so it doesn't make sense to have both LINE_BREAKER and BREAK_ONLY_BEFORE in the same sourcetype.  Also, while LINE_BREAKER requires a capturing group there is no explicit requirement for a capturing group in BREAK_ONLY_BEFORE.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224986#M44006</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224987#M44007</link>
      <description>&lt;P&gt;@alemarzu sorry, looks like the screenshots broke. I uploaded them to an image host.&lt;/P&gt;

&lt;P&gt;@ssievert: I don't know why that shows "AppsBrowser". I've never touched that. There is no &lt;CODE&gt;etc/appsbrowser/local&lt;/CODE&gt;, and &lt;CODE&gt;etc/appsbrowser/default&lt;/CODE&gt; has no &lt;CODE&gt;props.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;@richgalloway: That is the default, so I just left it alone for now. However if &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; were causing a problem, there would be too many lines in a single event, which is the opposite of my problem.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224987#M44007</guid>
      <dc:creator>phemmer</dc:creator>
      <dc:date>2016-01-13T20:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ignoring LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224988#M44008</link>
      <description>&lt;P&gt;Figured it out.&lt;BR /&gt;
We had an app which was doing transforms on syslog sources. However the regex it was using used &lt;CODE&gt;.*&lt;/CODE&gt; to match all data, but &lt;CODE&gt;.&lt;/CODE&gt; doesn't match carriage return (by default).&lt;BR /&gt;
I tweaked the regex the app uses to add &lt;CODE&gt;(?s)&lt;/CODE&gt; to set the regex flag letting it match.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 02:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-ignoring-LINE-BREAKER/m-p/224988#M44008</guid>
      <dc:creator>phemmer</dc:creator>
      <dc:date>2016-01-14T02:39:34Z</dc:date>
    </item>
  </channel>
</rss>

