<?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: Linebreaking not working as expected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31166#M5472</link>
    <description>&lt;P&gt;Thank you kbecker for your response. Just tried your suggestion. No luck though. I am still seeing separate events getting bundled up.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2012 04:56:17 GMT</pubDate>
    <dc:creator>dpatnam</dc:creator>
    <dc:date>2012-08-10T04:56:17Z</dc:date>
    <item>
      <title>Linebreaking not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31164#M5470</link>
      <description>&lt;P&gt;I have a logfile whose events are not being broken up in Splunk. Here are the two separate events that are being shown together in Splunk console.  &lt;/P&gt;

&lt;P&gt;16:45:12,772 INFO&amp;gt; intro_response.pl:549 main:: - Batch AAAIE120809004119P03 successfully transferred to staging server.&lt;BR /&gt;
16:45:12,774 INFO&amp;gt; intro_response.pl:568 main:: - account=act,program=932,admin=opsprg12,pgmssn=932-574,wfstate='BATCH_PUBLISHED',subject=Math,grade=11,error_code='',msg='Batch published to ePEN',batchnum=AAAIE120809004119P03,batch_count=5&lt;/P&gt;

&lt;P&gt;Here's the configuration I have in props.conf for this logfile - &lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %H:%i:%s&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = \d+:\d+:\d+\,\d+&lt;BR /&gt;
MAX_EVENTS = 2000&lt;/P&gt;

&lt;P&gt;This configuration was working fine earlier but it stopped working for some reason this week. Any help on this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31164#M5470</guid>
      <dc:creator>dpatnam</dc:creator>
      <dc:date>2020-09-28T12:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31165#M5471</link>
      <description>&lt;P&gt;Give this a shot... &lt;/P&gt;

&lt;P&gt;TIME_PREFIX=^&lt;BR /&gt;
TIME_FORMAT=%H:%M:%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=8&lt;BR /&gt;
BREAK_ONLY_BEFORE=^/d{2}/:/d{2}/:/d{2}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31165#M5471</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2020-09-28T12:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31166#M5472</link>
      <description>&lt;P&gt;Thank you kbecker for your response. Just tried your suggestion. No luck though. I am still seeing separate events getting bundled up.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 04:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31166#M5472</guid>
      <dc:creator>dpatnam</dc:creator>
      <dc:date>2012-08-10T04:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31167#M5473</link>
      <description>&lt;P&gt;Since you have SHOULD_LINEMERGE=false, that implies that Splunk is not seeing your line break character properly. The BREAK_ONLY_BEFORE is not used when SHOULD_LINEMERGE=false. And MAX_EVENTS should be removed - MAX_EVENTS is the maximum number of lines per event - when you set SHOULD_LINEMERGE=false, that is irrelevant because an event can have only one line.&lt;/P&gt;

&lt;P&gt;From &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Indexmulti-lineevents"&gt;Configure event linebreaking&lt;/A&gt;:&lt;/P&gt;

&lt;P&gt;"Splunk determines event boundaries in two steps:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Line breaking, which uses the LINE_BREAKER attribute's regex value to split the incoming stream of bytes into separate lines. By default, the LINE_BREAKER is any sequence of newlines and carriage returns (that is, ([\r\n]+))."&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;So this is the default:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=[\r\n]+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible that your line is actually separated by different characters in the log? Or, try this explicitly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %H:%i:%s
SHOULD_LINEMERGE = false
LINE_BREAKER=[\r\n]+
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2012 07:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31167#M5473</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-08-10T07:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreaking not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31168#M5474</link>
      <description>&lt;P&gt;Sorry, but what is %i in TIME_FORMAT? Don't you think that %M would be more correct? Or even:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT=%H:%M:%S,%3N&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which would let you capture the milliseconds as well.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 15:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Linebreaking-not-working-as-expected/m-p/31168#M5474</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-13T15:10:29Z</dc:date>
    </item>
  </channel>
</rss>

