<?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 Line breaking with custom regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89066#M22811</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I've got a very bad csv to index, which is basically a csv with 63 columns and tildes as separators, because field contents may include any characters except tildes... However... Line breaking is very difficult since the only hint for a new event is the 63th occurence of a tilde... I've got a regex to match one single event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((([^\~]*?)\~){63})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea how I can transform into a LINE_BREAKER regex? Using this regex will put the content in the first csv column into an event without the 62 other csv columns.&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Simon&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2013 11:42:36 GMT</pubDate>
    <dc:creator>Simon</dc:creator>
    <dc:date>2013-07-09T11:42:36Z</dc:date>
    <item>
      <title>Line breaking with custom regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89066#M22811</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I've got a very bad csv to index, which is basically a csv with 63 columns and tildes as separators, because field contents may include any characters except tildes... However... Line breaking is very difficult since the only hint for a new event is the 63th occurence of a tilde... I've got a regex to match one single event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((([^\~]*?)\~){63})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea how I can transform into a LINE_BREAKER regex? Using this regex will put the content in the first csv column into an event without the 62 other csv columns.&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Simon&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89066#M22811</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2013-07-09T11:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking with custom regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89067#M22812</link>
      <description>&lt;P&gt;If your data is truely a csv and there is a timestamp just set  &lt;STRONG&gt;SHOULD_LINEMERGE=false&lt;/STRONG&gt; which should break on each new line.  Also with an event as wide as yours you may need to increase your &lt;STRONG&gt;TRUNCATE=&lt;VALUE&gt;&lt;/VALUE&gt;&lt;/STRONG&gt; to accomidate the event length.  Posting a scrubed event might help too.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 15:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89067#M22812</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-07-09T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking with custom regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89068#M22813</link>
      <description>&lt;P&gt;Thanks for your answer. Unfortunately it isn't a true csv. It's a kind of csv with {-} as delimiter and the field contents may have multiliners.&lt;/P&gt;

&lt;P&gt;In the mean time I got a solution by myself:&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;
 BREAK_ONLY_BEFORE = ((([^{]*?){~}){63})&lt;/P&gt;

&lt;P&gt;Which breaks after the 63th occurence of {-} and respects empty values.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-breaking-with-custom-regex/m-p/89068#M22813</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2020-09-28T14:30:32Z</dc:date>
    </item>
  </channel>
</rss>

