<?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: Parsing error | ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \&amp;quot;\} in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448104#M77924</link>
    <description>&lt;P&gt;If we use this props then auto field extraction will not work while indexing.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 11:50:24 GMT</pubDate>
    <dc:creator>arunsunny</dc:creator>
    <dc:date>2018-06-07T11:50:24Z</dc:date>
    <item>
      <title>Parsing error | ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \"\}</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448102#M77922</link>
      <description>&lt;P&gt;Hey Ninjas,&lt;/P&gt;

&lt;P&gt;I'm getting the below-parsing error when indexing the JSON formatted events.&lt;/P&gt;

&lt;P&gt;ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \"}&lt;/P&gt;

&lt;P&gt;Below are the sample JSON events.&lt;/P&gt;

&lt;P&gt;{"timestamp":"2018-06-06T19:13:28.459+00:00","message":"Response time for Mongo query {\"method\":\"find\",\"collection\":\"XXXXXXX\",\"query\":{\"$and\":[{\"region.isoCountryCode\":\"GB\"},{\"abc.branchNumber\":5184},{\"classification.category\":{\"$in\":[\"Store\"]}}],\"status.currentStatus\":{\"$ne\":\"Hidden\"}},\"fields\":{}} with offset: 0, limit: 10, fields: {} is 9 ms","className":"XXXXXXXXXX","threadName":"XXXXXXXX","level":"INFO","HOSTNAME":"ip-1-0-0-0","traceId":"XXXXxXXX"}&lt;BR /&gt;
{"timestamp":"2018-06-05T14:46:53.919+00:00","message":"Response time for request: 2 ms","className":"XXXXXX","threadName":"XXXXXX","level":"INFO","HOSTNAME":"ip-0-0-0-0","traceId":"xxxxxx"}&lt;/P&gt;

&lt;P&gt;I have already tried with below props configuration but no luck.&lt;/P&gt;

&lt;P&gt;[test1]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;

&lt;P&gt;[test2]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^{&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=A variant of the JSON source type, with support for nonexistent timestamps&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=^{\"timestamp\":\"&lt;/P&gt;

&lt;P&gt;[test3]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^{&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=A variant of the JSON source type, with support for nonexistent timestamps&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=^{\"timestamp\":\"&lt;BR /&gt;
LINE_BREAKER=\"traceId\":\"[\w\d-]+\"}&lt;/P&gt;

&lt;P&gt;Please let me know anyone come across on this issue .....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448102#M77922</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2020-09-29T19:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing error | ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \"\}</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448103#M77923</link>
      <description>&lt;P&gt;You seem to be setting &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; to &lt;CODE&gt;true&lt;/CODE&gt;, but your data is one-line/JSON. So you should set it to &lt;CODE&gt;false&lt;/CODE&gt; if it is really only one-line per event. Then there are things that your &lt;CODE&gt;props.conf&lt;/CODE&gt; won't need to have anymore.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; doesn't need the capture group that the error is complaining about, but the &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; should have a capture group. But if you take the advice above about the &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt;, then you shouldn't need &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;, thus eliminating that error.&lt;/P&gt;

&lt;P&gt;Then your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; should probably include the TZ info with &lt;CODE&gt;%:z&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I would use the following in your &lt;CODE&gt;props.conf&lt;/CODE&gt; file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;your-source-type-name-should-be-here. ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
TIME_FORMAT=%FT%T.%N%:z
TIME_PREFIX="timestamp":"
MAX_TIMESTAMP_LOOKAHEAD=32
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should work an not give you any error messages.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 23:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448103#M77923</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-06T23:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing error | ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \"\}</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448104#M77924</link>
      <description>&lt;P&gt;If we use this props then auto field extraction will not work while indexing.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 11:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448104#M77924</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2018-06-07T11:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing error | ERROR LineBreakingProcessor - Line breaking regex has no capturing groups: \"\}</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448105#M77925</link>
      <description>&lt;P&gt;If you are referring to the json formatting and field extraction, just add:&lt;BR /&gt;
    INDEXED_EXTRACTIONS=json&lt;BR /&gt;
    KV_MODE=none&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-error-ERROR-LineBreakingProcessor-Line-breaking-regex/m-p/448105#M77925</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-09-29T19:56:11Z</dc:date>
    </item>
  </channel>
</rss>

