<?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 does LINE_BREAKER_LOOKBEHIND in props.conf work? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263074#M50502</link>
    <description>&lt;P&gt;In addition, I'm wondering how this all works with an indexer cluster where chunks are spreaded over multiple indexers (if you have UFs connecting to indexers in a round robin).&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 16:20:05 GMT</pubDate>
    <dc:creator>yoho</dc:creator>
    <dc:date>2020-04-07T16:20:05Z</dc:date>
    <item>
      <title>How does LINE_BREAKER_LOOKBEHIND in props.conf work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263071#M50499</link>
      <description>&lt;P&gt;May I know how exactly &lt;CODE&gt;LINE_BREAKER_LOOKBEHIND&lt;/CODE&gt; works? I am little bit confused by the explanation given in Splunk documentation. Any example would be great.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263071#M50499</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2016-12-05T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How does LINE_BREAKER_LOOKBEHIND in props.conf work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263072#M50500</link>
      <description>&lt;P&gt;In general, no need to consider this attribute. &lt;/P&gt;

&lt;P&gt;I believe this is how LINE_BREAKER_LOOKBEHIND is used. &lt;/P&gt;

&lt;P&gt;Data is coming as stream and splunk allocate memory (chunks of data) for the stream data. &lt;/P&gt;

&lt;P&gt;Assuming I know end of event starts with time stamp 2017-01-03 12:00:00, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\n\r]+)\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If  chunk 1  contains new line character and partial timestamp, while  chunk 2 contains timestamp , Splunk needs both chunk1 and chunk2 to check and match the LINE_BREAKER regex.   LINE_BREAKER_LOOKBEHIND will keep the last part of 1st Chunk when checking the chunk 2. Default is 100 characters. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263072#M50500</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2020-09-29T12:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does LINE_BREAKER_LOOKBEHIND in props.conf work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263073#M50501</link>
      <description>&lt;P&gt;I was wondering the same and came up more or less with the same conclusion as Masa BUT I have more questions. Let's take a concrete example:&lt;/P&gt;

&lt;P&gt;chunk1 : [data1]\n 2017-01-03 12:00:00 [data2]\n 2017-01-03 12:0&lt;BR /&gt;
chunk2 : 0:01 [data3]\n ...&lt;/P&gt;

&lt;P&gt;So when splunk processes chunk1, the regex will match only once: after [data1]. So data1 will be correctly identified as being part of an event (but not yet data2 and the preceding timestamp).&lt;/P&gt;

&lt;P&gt;When processing chunk2, splunk will prefix the chunk with LOOK_BEHIND bytes of chunk1. The regex will then match if LOOK_BEHIND is greater or equal than length(data2) + 2*length(timestamp). &lt;/P&gt;

&lt;P&gt;However, I find it all quite clumsy. First, splunk should know that ALL the leftover of chunk1 should be processed (why limit it to LOOK_BEHIND ?). Then, the default of 100 bytes appear quite small: it will only work for events whose total length + timestamp length is below 100 bytes.&lt;/P&gt;

&lt;P&gt;Am I missing something ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263073#M50501</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2020-09-30T04:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How does LINE_BREAKER_LOOKBEHIND in props.conf work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263074#M50502</link>
      <description>&lt;P&gt;In addition, I'm wondering how this all works with an indexer cluster where chunks are spreaded over multiple indexers (if you have UFs connecting to indexers in a round robin).&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 16:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/263074#M50502</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2020-04-07T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How does LINE_BREAKER_LOOKBEHIND in props.conf work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/520387#M87969</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LINE_BREAKER_LOOKBEHIND = &amp;lt;integer&amp;gt;
* The number of bytes before the end of the raw data chunk
  to which Splunk software should apply the 'LINE_BREAKER' regex.
* When there is leftover data from a previous raw chunk,
  LINE_BREAKER_LOOKBEHIND indicates the number of bytes before the end of
  the raw chunk (with the next chunk concatenated) where Splunk software
  applies the LINE_BREAKER regex.&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;First of all above config kicks -in only&amp;nbsp; if you have&amp;nbsp;'LINE_BREAKER' regex set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming you have&amp;nbsp;'LINE_BREAKER' regex '\n'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;First pass, chunk1 will be processed and since there is no previous leftover chunk,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" color="#008000"&gt;&lt;U&gt;chunk1 : [data1]\n 2017-01-03 12:00:00 [data2]\n 2017-01-03 12:0&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Will result in creating two events data1 and data2. Rest is leftover for chunk2.&lt;/P&gt;&lt;P&gt;Second pass, chunk2 will be processed, since we have a leftover,&amp;nbsp;LINE_BREAKER_LOOKBEHIND will be applied only if leftover size &amp;gt;&amp;nbsp;LINE_BREAKER_LOOKBEHIND.&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" color="#339966"&gt;&lt;U&gt;chunk2 : 0:01 [data3]\n ...&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In this example LINE_BREAKER_LOOKBEHIND was not applicable as leftover bytes &amp;lt; LINE_BREAKER_LOOKBEHIND(default 100).&lt;/P&gt;&lt;P&gt;In case, if there&amp;nbsp; is a scenario where it's applicable,&amp;nbsp; all splunk is doing is to exclude&amp;nbsp; first&amp;nbsp;LINE_BREAKER_LOOKBEHIND bytes from regex&amp;nbsp; of new string ( leftover + chunk2).&lt;/P&gt;&lt;P&gt;Why to apply regex on entire leftover part when we already know there is no regex match( during first pass).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 22:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-LINE-BREAKER-LOOKBEHIND-in-props-conf-work/m-p/520387#M87969</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2020-09-18T22:45:37Z</dc:date>
    </item>
  </channel>
</rss>

