<?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: Multiline events not line breaking as expected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101503#M21279</link>
    <description>&lt;P&gt;You're right, gkanapathy probably made a small mistake. Replace BREAK_ONLY_BEFORE with LINE_BREAKER. &lt;/P&gt;

&lt;P&gt;/kristian&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:02:59 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2020-09-28T10:02:59Z</dc:date>
    <item>
      <title>Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101497#M21273</link>
      <description>&lt;P&gt;I have some data that looks like:&lt;/P&gt;

&lt;P&gt;TIMESTAMP: 2011-10-31 13:51:25&lt;BR /&gt;
top - 13:51:25 up 6 days, 19:53,  5 users,  load average: 21.00, 20.57, 19.83&lt;BR /&gt;
Tasks: 130 total,   0 running, 130 sleeping,   0 stopped,   0 zombie&lt;BR /&gt;
Cpu(s):  1.5% us,  0.7% sy,  0.0% ni, 96.4% id,  1.3% wa,  0.0% hi,  0.1% si&lt;BR /&gt;
Mem:  32906264k total, 32847544k used,    58720k free,   346852k buffers&lt;BR /&gt;
Swap: 33615352k total,     6804k used, 33608548k free,  7764416k cached&lt;/P&gt;

&lt;P&gt;PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND&lt;BR /&gt;
25772 admin     17   0 22.8g  22g 7040 S 19.9 72.1  10:17.11 rfsd&lt;BR /&gt;
25780 admin     16   0 22.8g  22g 7040 S 19.9 72.1  10:18.01 rfsd&lt;BR /&gt;
25777 admin     16   0 22.8g  22g 7040 S 17.9 72.1  10:18.10 rfsd&lt;BR /&gt;
25459 admin     16   0 22.8g  22g 7040 S 11.9 72.1   8:40.27 rfsd&lt;BR /&gt;
25493 admin     16   0 22.8g  22g 7040 S  6.0 72.1   2:03.05 rfsd&lt;/P&gt;

&lt;P&gt;TIMESTAMP: 2011-10-31 13:52:25&lt;BR /&gt;
top - 13:52:25 up 6 days, 19:53,  5 users,  load average: 21.00, 20.57, 19.83&lt;BR /&gt;
Tasks: 130 total,   0 running, 130 sleeping,   0 stopped,   0 zombie&lt;BR /&gt;
Cpu(s):  1.5% us,  0.7% sy,  0.0% ni, 96.4% id,  1.3% wa,  0.0% hi,  0.1% si&lt;BR /&gt;
Mem:  32906264k total, 32847544k used,    58720k free,   346852k buffers&lt;BR /&gt;
Swap: 33615352k total,     6804k used, 33608548k free,  7764416k cached&lt;/P&gt;

&lt;P&gt;PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND&lt;BR /&gt;
25772 admin     17   0 22.8g  22g 7040 S 19.9 72.1  10:17.11 rfsd&lt;BR /&gt;
25780 admin     16   0 22.8g  22g 7040 S 19.9 72.1  10:18.01 rfsd&lt;BR /&gt;
25777 admin     16   0 22.8g  22g 7040 S 17.9 72.1  10:18.10 rfsd&lt;BR /&gt;
25459 admin     16   0 22.8g  22g 7040 S 11.9 72.1   8:40.27 rfsd&lt;BR /&gt;
25493 admin     16   0 22.8g  22g 7040 S  6.0 72.1   2:03.05 rfsd&lt;/P&gt;

&lt;P&gt;I want to line break only before "TIMESTAMP".  Here is my props.conf:&lt;/P&gt;

&lt;P&gt;[source::/var/log/stats/rfsd_top*]&lt;BR /&gt;
SHOULD_LINEMERGE = True&lt;BR /&gt;
BREAK_ONLY_BEFORE = TIMESTAMP&lt;BR /&gt;
MAX_EVENTS = 400&lt;/P&gt;

&lt;P&gt;I sometimes get an event with just the "TIMESTAMP.." line while other times I get the correct event intact.  The event size is 132 lines.  How can I get this to work?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101497#M21273</guid>
      <dc:creator>lisheridan</dc:creator>
      <dc:date>2020-09-28T10:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101498#M21274</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/stats/rfsd_top*]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)TIMESTAMP:
TRUNCATE = 40000
TIME_PREFIX = ^TIMESTAMP:
TIME_FORMAT = %Y-%m-%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Nov 2011 00:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101498#M21274</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-11-01T00:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101499#M21275</link>
      <description>&lt;P&gt;Give this stanza a try:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::/var/log/stats/rfsd_top*]&lt;BR /&gt;
TIME_PREFIX = ^TIMESTAMP:\s+&lt;BR /&gt;
TIME_FORMAT= %Y-%m-%d %H:%M:%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 20&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(?=^TIMESTAMP:\s+\d{4}\-\d{2}\-\d{2})&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;gt; please upvote and accept answer if you find it useful - thanks!&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2011 00:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101499#M21275</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2011-11-01T00:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101500#M21276</link>
      <description>&lt;P&gt;Unfortunately neither of those worked but thx for trying (even with SHOULD_LINEMERGE = true while using BREAK_ONLY_BEFORE).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101500#M21276</guid>
      <dc:creator>lisheridan</dc:creator>
      <dc:date>2020-09-28T10:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101501#M21277</link>
      <description>&lt;P&gt;Shouldn't it be &lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = true&lt;/P&gt;

&lt;P&gt;if you are going to use BREAK_ONLY_BEFORE?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101501#M21277</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-28T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101502#M21278</link>
      <description>&lt;P&gt;To your original stanza, try adding&lt;/P&gt;

&lt;P&gt;TRUNCATE = 40000&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD = 42&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101502#M21278</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-28T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101503#M21279</link>
      <description>&lt;P&gt;You're right, gkanapathy probably made a small mistake. Replace BREAK_ONLY_BEFORE with LINE_BREAKER. &lt;/P&gt;

&lt;P&gt;/kristian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101503#M21279</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline events not line breaking as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101504#M21280</link>
      <description>&lt;P&gt;yes, thank you. corrected above.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2011 15:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-events-not-line-breaking-as-expected/m-p/101504#M21280</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-11-01T15:04:22Z</dc:date>
    </item>
  </channel>
</rss>

