<?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 : problem with blank lines ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-problem-with-blank-lines/m-p/467403#M80545</link>
    <description>&lt;P&gt;Hi experts,&lt;BR /&gt;
I'm collecting logs wich look like this :&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;2019-12-18_09:51:42.982 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:42.983 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:42.984 [] [req-] INFO  AttributionBullBS.findAllBullDispatchD1EtD2 bulletinDispatch.timeout 1ms&lt;BR /&gt;
2019-12-18_09:51:42.985 [] [req-] INFO  AttributionBullBS.findAllBullDispatchDiv bulletinDispatch.timeout 1ms&lt;BR /&gt;
2019-12-18_09:51:42.987 [] [req-] INFO  AttributionBullBS.findAllBullDispatchCtrl bulletinDispatch.timeout 1ms&lt;/P&gt;

&lt;P&gt;2019-12-18_09:51:42.981 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 1ms&lt;/P&gt;

&lt;P&gt;2019-12-18_09:51:32.557 [] [req-] INFO  ParamGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.557 [] [req-] INFO  ParamGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.558 [] [req-] INFO  AttributionBullBS.findAllBullDispatchD1EtD2 bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.559 [] [req-] INFO  AttributionBullBS.findAllBullDispatchDiv bulletinDispatch.timeout 0ms&lt;/P&gt;

&lt;H2&gt;2019-12-18_09:51:32.560 [] [req-] INFO  AttributionBullBS.findAllBullDispatchCtrl bulletinDispatch.timeout 0ms&lt;/H2&gt;

&lt;P&gt;With this file, I'd like splunk to do a very simple thing : create 1 event for each line, but... I can't do it.&lt;/P&gt;

&lt;P&gt;I tried these parameters in props.conf :&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d_%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=^&lt;/P&gt;

&lt;P&gt;or even :&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;or :&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^&lt;/P&gt;

&lt;P&gt;All these parameters work well when I test the file using the "add data" feature in Splunk web... &lt;BR /&gt;
BUT... it doesn't work when I push the prop.conf file in my production environment.&lt;/P&gt;

&lt;P&gt;In the example above, Splunk merge the 5th first lines in 1 event, then I have one line in an event and the last 5 lines in another event : it seems that Splunk organize the parsing with the blank lines in the file (= lines between 2 blank line are grouped in the same event).&lt;/P&gt;

&lt;P&gt;Could someone help me on this case and provided the "magic" props to solve it ?&lt;BR /&gt;
Many thanks&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:23:58 GMT</pubDate>
    <dc:creator>DavidCaputo</dc:creator>
    <dc:date>2020-09-30T03:23:58Z</dc:date>
    <item>
      <title>Line breaking : problem with blank lines ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-problem-with-blank-lines/m-p/467403#M80545</link>
      <description>&lt;P&gt;Hi experts,&lt;BR /&gt;
I'm collecting logs wich look like this :&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;2019-12-18_09:51:42.982 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:42.983 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:42.984 [] [req-] INFO  AttributionBullBS.findAllBullDispatchD1EtD2 bulletinDispatch.timeout 1ms&lt;BR /&gt;
2019-12-18_09:51:42.985 [] [req-] INFO  AttributionBullBS.findAllBullDispatchDiv bulletinDispatch.timeout 1ms&lt;BR /&gt;
2019-12-18_09:51:42.987 [] [req-] INFO  AttributionBullBS.findAllBullDispatchCtrl bulletinDispatch.timeout 1ms&lt;/P&gt;

&lt;P&gt;2019-12-18_09:51:42.981 [] [req-] INFO  ParGideBS.getByCle bulletinDispatch.timeout 1ms&lt;/P&gt;

&lt;P&gt;2019-12-18_09:51:32.557 [] [req-] INFO  ParamGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.557 [] [req-] INFO  ParamGideBS.getByCle bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.558 [] [req-] INFO  AttributionBullBS.findAllBullDispatchD1EtD2 bulletinDispatch.timeout 0ms&lt;BR /&gt;
2019-12-18_09:51:32.559 [] [req-] INFO  AttributionBullBS.findAllBullDispatchDiv bulletinDispatch.timeout 0ms&lt;/P&gt;

&lt;H2&gt;2019-12-18_09:51:32.560 [] [req-] INFO  AttributionBullBS.findAllBullDispatchCtrl bulletinDispatch.timeout 0ms&lt;/H2&gt;

&lt;P&gt;With this file, I'd like splunk to do a very simple thing : create 1 event for each line, but... I can't do it.&lt;/P&gt;

&lt;P&gt;I tried these parameters in props.conf :&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d_%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=^&lt;/P&gt;

&lt;P&gt;or even :&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;or :&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^&lt;/P&gt;

&lt;P&gt;All these parameters work well when I test the file using the "add data" feature in Splunk web... &lt;BR /&gt;
BUT... it doesn't work when I push the prop.conf file in my production environment.&lt;/P&gt;

&lt;P&gt;In the example above, Splunk merge the 5th first lines in 1 event, then I have one line in an event and the last 5 lines in another event : it seems that Splunk organize the parsing with the blank lines in the file (= lines between 2 blank line are grouped in the same event).&lt;/P&gt;

&lt;P&gt;Could someone help me on this case and provided the "magic" props to solve it ?&lt;BR /&gt;
Many thanks&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-problem-with-blank-lines/m-p/467403#M80545</guid>
      <dc:creator>DavidCaputo</dc:creator>
      <dc:date>2020-09-30T03:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking : problem with blank lines ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-problem-with-blank-lines/m-p/467404#M80546</link>
      <description>&lt;P&gt;Problem solved :&lt;/P&gt;

&lt;P&gt;I declared in my props.conf [sourcetype_name ] and it seems that the problem was the space after the sourcetype name.&lt;BR /&gt;
with [sourcetype_name], the parameters above work perfectly.&lt;/P&gt;

&lt;P&gt;Sorry for that stupid mistake !&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-problem-with-blank-lines/m-p/467404#M80546</guid>
      <dc:creator>DavidCaputo</dc:creator>
      <dc:date>2020-09-30T03:27:31Z</dc:date>
    </item>
  </channel>
</rss>

