<?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: Linebreaking regex has no capturing groups in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643859#M109657</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;after using the below props configuration , the same error as mentioned above is coming ..&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;LINE BREAKER=([\r\n]+){&lt;BR /&gt;NO BINARY CHECK-true&lt;BR /&gt;BREAK ONLY_BEFORE=^\{&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;disabled=false&lt;BR /&gt;KV MODE=json&lt;BR /&gt;MAX TIMESTAMP LOOKAHEAD=70&lt;BR /&gt;TIME PREFIX="(timeStamplevtime)"\s*: \s*"&lt;BR /&gt;TIME FORMAT=%Y-%m-%dT%I:%M:%S&lt;BR /&gt;TRUNCATE=999999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 04:13:21 GMT</pubDate>
    <dc:creator>jackin</dc:creator>
    <dc:date>2023-05-19T04:13:21Z</dc:date>
    <item>
      <title>Why does linebreaking regex have no capturing groups?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643180#M109595</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Need help to fix the below error&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jackin_0-1683885511356.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25358iD78089D3CB1F1E40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jackin_0-1683885511356.png" alt="jackin_0-1683885511356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;My Props :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jackin_1-1683885571420.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25359i68DF930ACDF7991B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jackin_1-1683885571420.png" alt="jackin_1-1683885571420.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Sample events:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jackin_2-1683885624631.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25360i0AB7B59AD86CA70F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jackin_2-1683885624631.png" alt="jackin_2-1683885624631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643180#M109595</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2023-05-19T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643204#M109596</link>
      <description>&lt;P&gt;As the message says, the &lt;FONT face="courier new,courier"&gt;LINE_BREAKER&lt;/FONT&gt; attribute must contain a capture group (a set of parenthses).&amp;nbsp; Try &lt;FONT face="courier new,courier"&gt;LINE_BREAKER = ()^\{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You only need to specify &lt;FONT face="courier new,courier"&gt;LINE_BREAKER&lt;/FONT&gt; once in a stanza.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 12:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643204#M109596</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-12T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643215#M109599</link>
      <description>&lt;P&gt;Thanks for reply &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When applying a linebreaker, all logs fall under a single line.&lt;/P&gt;&lt;P&gt;It is showing like Failed to parse timestamp Defaulting to file modtime&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643215#M109599</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2023-05-12T13:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643216#M109600</link>
      <description>&lt;P&gt;Failing to parse timestamps is a different problem.&amp;nbsp; Please post a new question so this one can focus on the line breaking problem.&lt;/P&gt;&lt;P&gt;What do you mean by "&lt;SPAN&gt;all logs fall under a single line"?&amp;nbsp; The sample events appear to be multi-line.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643216#M109600</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-12T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643859#M109657</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;after using the below props configuration , the same error as mentioned above is coming ..&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;LINE BREAKER=([\r\n]+){&lt;BR /&gt;NO BINARY CHECK-true&lt;BR /&gt;BREAK ONLY_BEFORE=^\{&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;disabled=false&lt;BR /&gt;KV MODE=json&lt;BR /&gt;MAX TIMESTAMP LOOKAHEAD=70&lt;BR /&gt;TIME PREFIX="(timeStamplevtime)"\s*: \s*"&lt;BR /&gt;TIME FORMAT=%Y-%m-%dT%I:%M:%S&lt;BR /&gt;TRUNCATE=999999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 04:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643859#M109657</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2023-05-19T04:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643902#M109658</link>
      <description>&lt;P&gt;Remove the &lt;FONT face="courier new,courier"&gt;BREAK_ONLY_BEFORE&lt;/FONT&gt; setting.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643902#M109658</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-19T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643903#M109659</link>
      <description>&lt;P&gt;If I remove it. Logs are not breaking properly.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643903#M109659</guid>
      <dc:creator>jackin</dc:creator>
      <dc:date>2023-05-19T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643941#M109661</link>
      <description>&lt;P&gt;You shouldn't have both &lt;FONT face="courier new,courier"&gt;BREAK_ONLY_BEFORE&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;LINE_BREAKER&lt;/FONT&gt; in the same stanza.&amp;nbsp; Choose one or the other.&amp;nbsp; If you don't use &lt;FONT face="courier new,courier"&gt;LINE_BREAKER&lt;/FONT&gt; then &lt;FONT face="courier new,courier"&gt;SHOULD_LINEMERGE&lt;/FONT&gt; should be set to true.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Data/Configureeventlinebreaking" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Data/Configureeventlinebreaking&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 15:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/643941#M109661</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-19T15:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745025#M118433</link>
      <description>&lt;P&gt;The documentation that you refer to has them both in the same stanza, in steps 3 and 4:&lt;/P&gt;&lt;H3&gt;&lt;SPAN class=""&gt;Break and reassemble the data stream into events&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;This method oftentimes simplifies the configuration process, as it gives you access to several settings that you can use to define line-merging rules.&lt;/P&gt;&lt;P&gt;You must perform these steps on the heavy forwarder that you have designated to send data to your Splunk Cloud Platform instance.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV class=""&gt;On the forwarder that is to send data to your Splunk Cloud Platform instance, use a text editor to open $SPLUNK_HOME/etc/system/local/props.conf for editing.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;In this file, specify a stanza in the props.conf configuration file that represents the stream of data you want to break and reassemble into events.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;In that stanza, configure the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;LINE_BREAKER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;setting with a regular expression that breaks the data stream into multiple lines.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;Add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SHOULD_LINEMERGE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;setting to the stanza, and set its value to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;true.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;Configure additional line-merging settings, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;BREAK_ONLY_BEFORE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and others, to specify how the forwarder is to reassemble the lines into events. For more information on the line-merging settings, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="http://docs.splunk.com/Documentation/Splunk/9.4.1/Data/Configureeventlinebreaking#Attributes_that_apply_only_when_the_SHOULD_LINEMERGE_setting_is_true" target="_blank" rel="noopener"&gt;Attributes that apply only when the SHOULD_LINEMERGE setting is true&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;later in this topic.&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If your data conforms well to the default&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;LINE_BREAKER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;value, which is any number of newlines and carriage returns, you don't need to change the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;LINE_BREAKER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;setting. Instead, set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SHOULD_LINEMERGE=true&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and use the line-merging settings to reassemble the data.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 21:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745025#M118433</guid>
      <dc:creator>lorinj62</dc:creator>
      <dc:date>2025-04-25T21:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745050#M118441</link>
      <description>&lt;P&gt;I contend the documentation is incorrect.&amp;nbsp; LINE_BREAKER and BREAK_ONLY_BEFORE are contradictory and shouldn't be used together.&amp;nbsp; At the very least, great care should be used to ensure the two settings work properly.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2025 13:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745050#M118441</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-04-27T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking regex has no capturing groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745060#M118442</link>
      <description>&lt;P&gt;Actually, I believe the docs are correct since BREAK_ONLY_BEFORE applies to the line-merging stage which - if enabled - happens after line breaking.&lt;/P&gt;&lt;P&gt;Anyway, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239496"&gt;@jackin&lt;/a&gt;&amp;nbsp; unless you have a very, very peculiar use case, as a rule of thumb you should never enable line-merging. It is resource-intensive and most often you can achieve the same result by simply chosing a proper line breaker.&lt;/P&gt;&lt;P&gt;So, how I would approach this - I'd firstly try to use the default ([\r\n]+) linebreaker and check if the stream gets broken into separate lines (disable SHOULD_LINEMERGE!).&lt;/P&gt;&lt;P&gt;If it does, you can start searching how to anchor the breaker to the opening bracket.&lt;/P&gt;&lt;P&gt;If it doesn't, that means you have some other characters in your data stream and you have to check what it is.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2025 18:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-linebreaking-regex-have-no-capturing-groups/m-p/745060#M118442</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-04-27T18:46:12Z</dc:date>
    </item>
  </channel>
</rss>

