<?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 ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|' in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404977#M71877</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am getting below JSOnParser exception in one of my data source [json sourcetype]. Don't think there is any issue with inputs.conf currently in place. Please help?&lt;/P&gt;

&lt;P&gt;ERROR JsonLineBreaker - JSON StreamId:7831683518768418639 had parsing error:Unexpected character while parsing backslash escape: '|' - data_source="L:\logs\app\ABC\abc.data.log", data_host="Host001", data_sourcetype="_json"&lt;/P&gt;

&lt;P&gt;inputs.conf :- &lt;BR /&gt;
[monitor://L:\logs\app\ABC\abc.data.log]&lt;BR /&gt;
sourcetype = _json&lt;BR /&gt;
index = mydata&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:45:52 GMT</pubDate>
    <dc:creator>Juhi28</dc:creator>
    <dc:date>2020-09-29T22:45:52Z</dc:date>
    <item>
      <title>ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404977#M71877</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am getting below JSOnParser exception in one of my data source [json sourcetype]. Don't think there is any issue with inputs.conf currently in place. Please help?&lt;/P&gt;

&lt;P&gt;ERROR JsonLineBreaker - JSON StreamId:7831683518768418639 had parsing error:Unexpected character while parsing backslash escape: '|' - data_source="L:\logs\app\ABC\abc.data.log", data_host="Host001", data_sourcetype="_json"&lt;/P&gt;

&lt;P&gt;inputs.conf :- &lt;BR /&gt;
[monitor://L:\logs\app\ABC\abc.data.log]&lt;BR /&gt;
sourcetype = _json&lt;BR /&gt;
index = mydata&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404977#M71877</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2020-09-29T22:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404978#M71878</link>
      <description>&lt;P&gt;It would help if you posted the content in your abc.data.log that caused the parsing error.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 05:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404978#M71878</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-15T05:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404979#M71879</link>
      <description>&lt;P&gt;Here is a sample data:&lt;/P&gt;

&lt;P&gt;{   [-] &lt;BR /&gt;
     ClApp:  Applicationname&lt;BR /&gt;&lt;BR /&gt;
     ClHost:     144.xy.zz.155&lt;BR /&gt;&lt;BR /&gt;
     ClRealm:    Realm&lt;BR /&gt;
     ClUser:     juhi28&lt;BR /&gt;
     Env:    DEV&lt;BR /&gt;
     ExecMs:     0&lt;BR /&gt;&lt;BR /&gt;
     ReqEnd:     &lt;A href="http://juhidev:8700/data/DataManagerService.svc" target="_blank"&gt;http://juhidev:8700/data/DataManagerService.svc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
     ReqType:    POST&lt;BR /&gt;&lt;BR /&gt;
     StackTrace:&lt;BR /&gt;&lt;BR /&gt;
     Status:     OK &lt;BR /&gt;
     class:  XYZ.Live.DataLive.DataManagerService&lt;BR /&gt;&lt;BR /&gt;
     host:   VMA001NVMM &lt;BR /&gt;
     level:  INFO&lt;BR /&gt;&lt;BR /&gt;
     msg:    View request for Random View&lt;BR /&gt;
     tid:     CallerFilePath: e:\abc\xcv\wed\qas\int\svn_source\src\PIM\PLMDService\DM.svc.cs; CallerLineNumber: 86; CallerMemberArguments: Viewer,GNGFDwednes&lt;BR /&gt;
     ts:     2019-01-14 21:57:29.24 &lt;BR /&gt;
     user:   service_account&lt;BR /&gt;&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404979#M71879</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2020-09-29T22:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404980#M71880</link>
      <description>&lt;P&gt;Judging from the &lt;CODE&gt;[-]&lt;/CODE&gt; and the lack of double quotes I'm guessing that's an event splunk successfully parsed as JSON? A successful event isn't going to tell us what the broken events looked like.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404980#M71880</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-15T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404981#M71881</link>
      <description>&lt;P&gt;So how should i check which event breaked and resulted in "ERROR JsonLineBreaker - JSON StreamId:7831683518768418639 had parsing error:Unexpected character while parsing backslash escape: '|' -"&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404981#M71881</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2019-01-15T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404982#M71882</link>
      <description>&lt;P&gt;You could search the corresponding logfiles that should have been read around that time for a pipe character, for example. You've got the host and path in the message plus its timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 10:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404982#M71882</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-15T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404983#M71883</link>
      <description>&lt;P&gt;yes the log file is :- L:\logs\app\MMData\PM.Let.Marketjob.DEV.log.&lt;/P&gt;

&lt;P&gt;This is the only log which is erring out.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 10:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404983#M71883</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2019-01-15T10:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404984#M71884</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
You should try deploying LINE_BREAKER in props.conf of your indexer &lt;BR /&gt;
Try:&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = "uri":+[^}]+}(,[\r\n]+)&lt;BR /&gt;
Or:&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = }(,[\r\n\s]+){[\r\n\s]+"line":\s1&lt;/P&gt;

&lt;P&gt;PFB link in splunk answers and check for the accepted answers and the comments in that. This might help you.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/700692/splunk-json-parsing-error.html"&gt;https://answers.splunk.com/answers/700692/splunk-json-parsing-error.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 11:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404984#M71884</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-01-15T11:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404985#M71885</link>
      <description>&lt;P&gt;Hi nikita, how were you able to infer that we should go by this line breaker.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 11:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404985#M71885</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2019-01-15T11:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404986#M71886</link>
      <description>&lt;P&gt;As you have mentioned your log format is json, so this regex is for  basic json files.&lt;BR /&gt;
You can also check using INDEXED_EXTRACTIONS = JSON  if this regex doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 12:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404986#M71886</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-01-15T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404987#M71887</link>
      <description>&lt;P&gt;Okay... so, what's inside that file? Possibly filtered for "contains pipe char" and "happened around the time of the error"?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404987#M71887</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-15T13:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404988#M71888</link>
      <description>&lt;P&gt;@martin , i think i didn't understand your ask. we are already monitoring below logfile. Is it different from what you are asking.&lt;/P&gt;

&lt;P&gt;[&lt;EM&gt;monitor://L:\logs\app\ABC\abc.data.log&lt;/EM&gt;]&lt;BR /&gt;
sourcetype = _json&lt;BR /&gt;
index = mydata&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 02:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404988#M71888</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2019-01-16T02:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404989#M71889</link>
      <description>&lt;P&gt;Somewhere in that file &lt;CODE&gt;abc.data.log&lt;/CODE&gt; there is a pipe character &lt;CODE&gt;|&lt;/CODE&gt; that's breaking the JSON parsing. Find it.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404989#M71889</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-16T21:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404990#M71890</link>
      <description>&lt;P&gt;Yes correct, found an extra backslash character in the data itself which was breaking json source type. &lt;BR /&gt;
However it took a lot of time to scan events and judge which event was exactly the culprit.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 04:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404990#M71890</guid>
      <dc:creator>Juhi28</dc:creator>
      <dc:date>2019-01-17T04:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404991#M71891</link>
      <description>&lt;P&gt;You've found the culprit? Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 13:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404991#M71891</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-01-17T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404992#M71892</link>
      <description>&lt;P&gt;You should click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 01:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/404992#M71892</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T01:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR JsonLineBreaker had parsing error:Unexpected character while parsing backslash escape: '|'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/690498#M114889</link>
      <description>&lt;P&gt;I had the same problem on a UF, checking the sourcetype props I noticed that there were magic 6 on the agent. After deleting them, the collection works again.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 14:35:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-JsonLineBreaker-had-parsing-error-Unexpected-character/m-p/690498#M114889</guid>
      <dc:creator>OliveT</dc:creator>
      <dc:date>2024-06-12T14:35:04Z</dc:date>
    </item>
  </channel>
</rss>

