<?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: Complex line breaking configuration help needed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496627#M84702</link>
    <description>&lt;P&gt;The five events in my original post should be lines--&lt;BR /&gt;
 1-4, &lt;BR /&gt;
5-9, &lt;BR /&gt;
10-11, &lt;BR /&gt;
12-15, &lt;BR /&gt;
16-21.&lt;/P&gt;

&lt;P&gt;Or like this--&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event 1
 [2019-12-18 07:00:01.070924-07:00|info]Line 3:     :begin
 [2019-12-18 07:00:01.070924-07:00|info]Line 4:     
 [2019-12-18 07:00:01.070924-07:00|info]Line 5:     WORKINGDIR "C:\Download\Server1"
 [2019-12-18 07:00:01.070924-07:00|info]*Working directory: C:\Download\Server1\

Event 2
 [2019-12-18 07:00:01.070924-07:00|info]Line 6:     
 [2019-12-18 07:00:01.070924-07:00|info]Line 7:       FTPLOGON "Server1" /timeout=60
 [2019-12-18 07:00:01.070924-07:00|info]*Logging on to &amp;lt;server1&amp;gt; as SFTP (SSH File Transfer Protocol)
 [2019-12-18 07:00:01.070924-07:00|info]*Logon in progress...
 [2019-12-18 07:00:03.055523-07:00|info]*Logon successful.

Event 3
 [2019-12-18 07:00:03.055523-07:00|info]Line 8:       FTPCD "Extracts"
 [2019-12-18 07:00:03.164909-07:00|info]*Current FTP site directory: /Extracts/

Event 4
 [2019-12-18 07:00:03.164909-07:00|info]Line 9:       IFERROR= $ERROR_SUCCESS GOTO Operation1
 [2019-12-18 07:00:03.164909-07:00|info]Line 21:    :Operation1
 [2019-12-18 07:00:03.164909-07:00|info]Line 22:      FTPGETFILE "*na_alert_subs*" /newest
 [2019-12-18 07:00:03.164909-07:00|info]*Hint: FTPGETFILE /newest always returns the newest file

Event 5
 [2019-12-18 07:00:03.430561-07:00|info]Line 22:    *%sitefile has been set to: na_alert_subs_20191217.txt
 [2019-12-18 07:00:03.446223-07:00|info]Line 23:      RCVFILE %sitefile /delete
 [2019-12-18 07:00:03.446223-07:00|info]*Receiving to "C:\Download\Server1\na_alert_subs_20191217.txt"
 [2019-12-18 07:00:12.947244-07:00|info]*Complete, received 1394788 bytes in 9 seconds (1513.44K cps)
 [2019-12-18 07:00:13.103506-07:00|info]*File deleted on FTP site.
 [2019-12-18 07:00:13.103506-07:00|info]*Download complete, 1 file received.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Mar 2020 21:33:33 GMT</pubDate>
    <dc:creator>jfaldmomacu</dc:creator>
    <dc:date>2020-03-16T21:33:33Z</dc:date>
    <item>
      <title>Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496625#M84700</link>
      <description>&lt;P&gt;Here is a snippet of a log file that I am trying to do line breaking on. I want it to only break when one line has matches "info]*" and the next line has "info]Line"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[2019-12-18 07:00:01.070924-07:00|info]Line 3:     :begin
[2019-12-18 07:00:01.070924-07:00|info]Line 4:     
[2019-12-18 07:00:01.070924-07:00|info]Line 5:     WORKINGDIR "C:\Download\Server1"
[2019-12-18 07:00:01.070924-07:00|info]*Working directory: C:\Download\Server1\
[2019-12-18 07:00:01.070924-07:00|info]Line 6:     
[2019-12-18 07:00:01.070924-07:00|info]Line 7:       FTPLOGON "Server1" /timeout=60
[2019-12-18 07:00:01.070924-07:00|info]*Logging on to &amp;lt;server1&amp;gt; as SFTP (SSH File Transfer Protocol)
[2019-12-18 07:00:01.070924-07:00|info]*Logon in progress...
[2019-12-18 07:00:03.055523-07:00|info]*Logon successful.
[2019-12-18 07:00:03.055523-07:00|info]Line 8:       FTPCD "Extracts"
[2019-12-18 07:00:03.164909-07:00|info]*Current FTP site directory: /Extracts/
[2019-12-18 07:00:03.164909-07:00|info]Line 9:       IFERROR= $ERROR_SUCCESS GOTO Operation1
[2019-12-18 07:00:03.164909-07:00|info]Line 21:    :Operation1
[2019-12-18 07:00:03.164909-07:00|info]Line 22:      FTPGETFILE "*na_alert_subs*" /newest
[2019-12-18 07:00:03.164909-07:00|info]*Hint: FTPGETFILE /newest always returns the newest file
[2019-12-18 07:00:03.430561-07:00|info]Line 22:    *%sitefile has been set to: na_alert_subs_20191217.txt
[2019-12-18 07:00:03.446223-07:00|info]Line 23:      RCVFILE %sitefile /delete
[2019-12-18 07:00:03.446223-07:00|info]*Receiving to "C:\Download\Server1\na_alert_subs_20191217.txt"
[2019-12-18 07:00:12.947244-07:00|info]*Complete, received 1394788 bytes in 9 seconds (1513.44K cps)
[2019-12-18 07:00:13.103506-07:00|info]*File deleted on FTP site.
[2019-12-18 07:00:13.103506-07:00|info]*Download complete, 1 file received.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So in that snippet it would break down into five events. &lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 20:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496625#M84700</guid>
      <dc:creator>jfaldmomacu</dc:creator>
      <dc:date>2020-03-16T20:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496626#M84701</link>
      <description>&lt;P&gt;what's line number you want to cut?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496626#M84701</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-16T21:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496627#M84702</link>
      <description>&lt;P&gt;The five events in my original post should be lines--&lt;BR /&gt;
 1-4, &lt;BR /&gt;
5-9, &lt;BR /&gt;
10-11, &lt;BR /&gt;
12-15, &lt;BR /&gt;
16-21.&lt;/P&gt;

&lt;P&gt;Or like this--&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event 1
 [2019-12-18 07:00:01.070924-07:00|info]Line 3:     :begin
 [2019-12-18 07:00:01.070924-07:00|info]Line 4:     
 [2019-12-18 07:00:01.070924-07:00|info]Line 5:     WORKINGDIR "C:\Download\Server1"
 [2019-12-18 07:00:01.070924-07:00|info]*Working directory: C:\Download\Server1\

Event 2
 [2019-12-18 07:00:01.070924-07:00|info]Line 6:     
 [2019-12-18 07:00:01.070924-07:00|info]Line 7:       FTPLOGON "Server1" /timeout=60
 [2019-12-18 07:00:01.070924-07:00|info]*Logging on to &amp;lt;server1&amp;gt; as SFTP (SSH File Transfer Protocol)
 [2019-12-18 07:00:01.070924-07:00|info]*Logon in progress...
 [2019-12-18 07:00:03.055523-07:00|info]*Logon successful.

Event 3
 [2019-12-18 07:00:03.055523-07:00|info]Line 8:       FTPCD "Extracts"
 [2019-12-18 07:00:03.164909-07:00|info]*Current FTP site directory: /Extracts/

Event 4
 [2019-12-18 07:00:03.164909-07:00|info]Line 9:       IFERROR= $ERROR_SUCCESS GOTO Operation1
 [2019-12-18 07:00:03.164909-07:00|info]Line 21:    :Operation1
 [2019-12-18 07:00:03.164909-07:00|info]Line 22:      FTPGETFILE "*na_alert_subs*" /newest
 [2019-12-18 07:00:03.164909-07:00|info]*Hint: FTPGETFILE /newest always returns the newest file

Event 5
 [2019-12-18 07:00:03.430561-07:00|info]Line 22:    *%sitefile has been set to: na_alert_subs_20191217.txt
 [2019-12-18 07:00:03.446223-07:00|info]Line 23:      RCVFILE %sitefile /delete
 [2019-12-18 07:00:03.446223-07:00|info]*Receiving to "C:\Download\Server1\na_alert_subs_20191217.txt"
 [2019-12-18 07:00:12.947244-07:00|info]*Complete, received 1394788 bytes in 9 seconds (1513.44K cps)
 [2019-12-18 07:00:13.103506-07:00|info]*File deleted on FTP site.
 [2019-12-18 07:00:13.103506-07:00|info]*Download complete, 1 file received.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496627#M84702</guid>
      <dc:creator>jfaldmomacu</dc:creator>
      <dc:date>2020-03-16T21:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496628#M84703</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = true
LINE_BREAKER = Line.*[\r\n]\[.*\]\*.*([\r\n])\[.*\]Line
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; is with &lt;CODE&gt;(?msU)&lt;/CODE&gt; Implicitly. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 11:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496628#M84703</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-17T11:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496629#M84704</link>
      <description>&lt;P&gt;That made it so there are no line breaks, or so that everything comes through as one event. The source is a bunch of small files, less than a hundred lines, and each file is now one event. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496629#M84704</guid>
      <dc:creator>jfaldmomacu</dc:creator>
      <dc:date>2020-03-17T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496630#M84705</link>
      <description>&lt;P&gt;I guess this wasn't as complex as I initially thought.  I was getting wrapped up in all the options. In reading the documentation for LINE_BREAKER I was able to get a simple solution. Thank you @to4kawa for prompting me to get to the right answer. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = .*]\*.*([\r\n]+)\[.*\]Line
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I swapped out Line for [^*]  as I saw some edge cases where I needed some an event breaking there as well. So I really ended up with this. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = .*]\*.*([\r\n]+)\[.*\][^\*]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496630#M84705</guid>
      <dc:creator>jfaldmomacu</dc:creator>
      <dc:date>2020-03-17T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496631#M84706</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = [\r\n]+\[\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\.\d+-\d{2}:\d{2}\|info]\*[^\r\n]+([\r\n]+)\[\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\.\d+-\d{2}:\d{2}\|info\]Line
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See here:&lt;BR /&gt;
&lt;A href="https://regex101.com/r/P4LwaF/1"&gt;https://regex101.com/r/P4LwaF/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496631#M84706</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-17T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496632#M84707</link>
      <description>&lt;P&gt;You got the &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; wrong...&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496632#M84707</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-17T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Complex line breaking configuration help needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496633#M84708</link>
      <description>&lt;P&gt;I see&lt;BR /&gt;
When I checked Splunk Add-on Builder, I need &lt;CODE&gt;SHOULD_LINEMERGE = true&lt;/CODE&gt;&lt;BR /&gt;
Does your setting cut between 16 and 17?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 21:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Complex-line-breaking-configuration-help-needed/m-p/496633#M84708</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-17T21:08:39Z</dc:date>
    </item>
  </channel>
</rss>

