<?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: How to line break at indent in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376101#M68097</link>
    <description>&lt;P&gt;show a stream of logs and indicate where they should (and should not) be broken.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 18:12:48 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-10T18:12:48Z</dc:date>
    <item>
      <title>How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376100#M68096</link>
      <description>&lt;P&gt;I'm trying to split log4j Java exceptions. I need to split a large event into smaller events where an indent does not occur, except when there is a "caused by" clause. I know that I need to edit line_breaker in props.conf, but am not sure of the regex syntax.&lt;/P&gt;

&lt;P&gt;So basically I need to know how to break at an indented line, but not one that is indented, with the exception being "Caused by". &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;com.matrixone.apps.domain.util.BHTBackgroundProcess.invokeInBackground(BHTBackgroundProcess.java:394) | 2019-07-05 03:07:25,692 | ERROR | Business object has no signature 'GoToSucceded'
    at matrix.db.BusinessObject.rejectSignature(BusinessObject.java:2656)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess.invokeInBackground(BHTBackgroundProcess.java:361)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess$CustomBackgroundProcessThread.run(BHTBackgroundProcess.java:65)
    at com.matrixone.threadpool.DefaultThreadPool.run(DefaultThreadPool.java:185)
    at java.lang.Thread.run(Unknown Source
Business object has no signature 'GoToSucceded'
    at com.matrixone.apps.domain.util.BHTBackgroundProcess$CustomBackgroundProcessThread.run(BHTBackgroundProcess.java:71)
    at com.matrixone.threadpool.DefaultThreadPool.run(DefaultThreadPool.java:185)
    at java.lang.Thread.run(Unknown Source)
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess.invokeInBackground(BHTBackgroundProcess.java:315)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess$CustomBackgroundProcessThread.run(BHTBackgroundProcess.java:65)
    at com.matrixone.threadpool.DefaultThreadPool.run(DefaultThreadPool.java:185)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Error Message: STEP validation fails for one or more STEP files checked-in to the derived format
    at com.bht.catia.batch.STEPValidation.StepValidationBatch.checkAndReleaseDerivedFormat(StepValidationBatch.java:439)
    at com.bht.catia.batch.STEPValidation.StepValidationBatch.processSTEPFilesValidation(StepValidationBatch.java:114)
    at com.bht.catia.batch.STEPValidation.StepValidationProxy.initiateSTEPValidationBackgroundJob(StepValidationProxy.java:79)
    ... 12 more
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess.invokeInBackground(BHTBackgroundProcess.java:315)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.matrixone.apps.domain.util.BHTBackgroundProcess$CustomBackgroundProcessThread.run(BHTBackgroundProcess.java:65)
    at com.matrixone.threadpool.DefaultThreadPool.run(DefaultThreadPool.java:185)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Error Message: STEP validation fails for one or more STEP files checked-in to the derived format
    at com.bht.catia.batch.STEPValidation.StepValidationBatch.checkAndReleaseDerivedFormat(StepValidationBatch.java:439)
    at com.bht.catia.batch.STEPValidation.StepValidationBatch.processSTEPFilesValidation(StepValidationBatch.java:114)
    at com.bht.catia.batch.STEPValidation.StepValidationProxy.initiateSTEPValidationBackgroundJob(StepValidationProxy.java:79)
    ... 12 more
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I placed dashes where I need breaks.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7296iBFA13B405D512420/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 17:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376100#M68096</guid>
      <dc:creator>bah5663_98</dc:creator>
      <dc:date>2019-07-10T17:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376101#M68097</link>
      <description>&lt;P&gt;show a stream of logs and indicate where they should (and should not) be broken.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 18:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376101#M68097</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-10T18:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376102#M68098</link>
      <description>&lt;P&gt;I updated the question. The dashes are where breaks should occur. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 18:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376102#M68098</guid>
      <dc:creator>bah5663_98</dc:creator>
      <dc:date>2019-07-10T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376103#M68099</link>
      <description>&lt;P&gt;We really need the text so that we can work with RegEx tools on your events.  Pictures do not allow us to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376103#M68099</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-10T19:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376104#M68100</link>
      <description>&lt;P&gt;Sorry again. I added the text but the indented format is off. It usually looks as it does in the picture.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376104#M68100</guid>
      <dc:creator>bah5663_98</dc:creator>
      <dc:date>2019-07-10T19:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376105#M68101</link>
      <description>&lt;P&gt;Try this as your line breaker regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;()\s^[^\s|Caused by]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376105#M68101</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-07-10T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376106#M68102</link>
      <description>&lt;P&gt;The text isn't the same either, it does not contain "Business object".  We cannot help you if you don't give us sample events that match your desired outcome mockup.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 05:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376106#M68102</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-11T05:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376107#M68103</link>
      <description>&lt;P&gt;@bah5663_98. Please let me know if you've tried the regex above as your line breaker. I think it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376107#M68103</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-07-11T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376108#M68104</link>
      <description>&lt;P&gt;Here is what I came up with based on your description:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [&amp;lt;sourcetype&amp;gt;]
 DATETIME_CONFIG=CURRENT
 SHOULD_LINEMERGE=false
 LINE_BREAKER=([\r\n]+)[^\s|C]
 NO_BINARY_CHECK=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there is no other "non-indented" line that begins with "C", the above will work. It's hard to do an exclude in RegEx for a complete string.&lt;/P&gt;

&lt;P&gt;Using your test data, I was able to get it to line break:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7295i59841FEF4B9D4A38/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 18:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376108#M68104</guid>
      <dc:creator>ragedsparrow</dc:creator>
      <dc:date>2019-07-12T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to line break at indent</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376109#M68105</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)(?!\s|Caused by:)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Jul 2019 02:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-line-break-at-indent/m-p/376109#M68105</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-14T02:03:57Z</dc:date>
    </item>
  </channel>
</rss>

