<?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: Unable to line break in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457634#M79097</link>
    <description>&lt;P&gt;no this did not solve the problem&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 12:24:54 GMT</pubDate>
    <dc:creator>ssaenger</dc:creator>
    <dc:date>2019-07-08T12:24:54Z</dc:date>
    <item>
      <title>Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457630#M79093</link>
      <description>&lt;P&gt;I have a log file with the following lines;&lt;BR /&gt;
2019/07/08 11:40:01 mess5 list_frozen_.sh mess5b stream 125 is Frozen. &lt;BR /&gt;
2019/07/08 11:40:01 mess5 list_frozen_.sh mess5b stream 126 is Frozen. &lt;BR /&gt;
2019/07/08 11:40:01 mess5 list_frozen_.sh mess5b stream 514 is Frozen. &lt;/P&gt;

&lt;P&gt;my props.conf looks like this;&lt;BR /&gt;
[source::/logs/Alerts_.log]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^\d{4}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2},&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 19&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
TIME_FORMAT = %Y/%m/%d %H:%M:%S&lt;BR /&gt;
MAX_EVENTS = 10000&lt;BR /&gt;
TRUNCATE = 0&lt;/P&gt;

&lt;P&gt;however my searches return the lines unsplit.&lt;BR /&gt;
is this due to the lines being almost identicle in the search we have used mvexpand to get round this problem, however i would like to resolve this at the indexers.&lt;/P&gt;

&lt;P&gt;any help much would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457630#M79093</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-30T01:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457631#M79094</link>
      <description>&lt;P&gt;You have a &lt;CODE&gt;,&lt;/CODE&gt; behind the &lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; regex. If that is there in your actual config file, that doesn't match your events, so it doesn't break.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 11:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457631#M79094</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-08T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457632#M79095</link>
      <description>&lt;P&gt;Hi FrankVI,&lt;/P&gt;

&lt;P&gt;That was a typo. Good spot!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457632#M79095</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-07-08T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457633#M79096</link>
      <description>&lt;P&gt;A typo in your question, or in your config? In other words, did this resolve your problem?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457633#M79096</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-08T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457634#M79097</link>
      <description>&lt;P&gt;no this did not solve the problem&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457634#M79097</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-07-08T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457635#M79098</link>
      <description>&lt;P&gt;This is a source of a sourcetype that is already declared in props.conf&lt;BR /&gt;
i dont know if that is causing an issue?&lt;BR /&gt;
This log has a different date to the other logs in the sourcetype, hence a  new entry.&lt;/P&gt;

&lt;P&gt;[mess5]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^\d{2}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}\s&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 17&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
TIME_FORMAT = %d/%m/%y %H:%M:%S&lt;BR /&gt;
MAX_EVENTS = 10000&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457635#M79098</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-30T01:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457636#M79099</link>
      <description>&lt;P&gt;additional information&lt;/P&gt;

&lt;P&gt;This is a source of a sourcetype that is already declared in props.conf&lt;BR /&gt;
i dont know if that is causing an issue?&lt;BR /&gt;
This log has a different date to the other logs in the sourcetype, hence a new entry.&lt;/P&gt;

&lt;P&gt;[mess5]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^\d{2}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}\s&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 17&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
TIME_FORMAT = %d/%m/%y %H:%M:%S&lt;BR /&gt;
MAX_EVENTS = 10000&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457636#M79099</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-30T01:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457637#M79100</link>
      <description>&lt;P&gt;Even if you get yours to work, throw it away and use this because it is more efficient:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/logs/Alerts_.log]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
MAX_TIMESTAMP_LOOKAHEAD = 19
TIME_PREFIX = ^
TIME_FORMAT = %Y/%m/%d %H:%M:%S
MAX_EVENTS = 10000
TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457637#M79100</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-08T13:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457638#M79101</link>
      <description>&lt;P&gt;Well, in theory source based settings should override sourcetype based settings. So that should work. Are you sure the source value you use accurately matches the source value on the events?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457638#M79101</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-08T13:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457639#M79102</link>
      <description>&lt;P&gt;Agree, using LINE_BREAKER (with perhaps a slightly more specific linebreaker than this) is the better choice.&lt;/P&gt;

&lt;P&gt;And you can also make that work with both formats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)\d{2,4}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457639#M79102</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-08T13:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457640#M79103</link>
      <description>&lt;P&gt;True, but I am presuming that the events are as presented: 1 line = 1 event.  If there are multi-line events, then, yes, use the &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; that @FrankVl provided.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457640#M79103</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-08T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457641#M79104</link>
      <description>&lt;P&gt;Also, I would use a &lt;CODE&gt;sourcetype&lt;/CODE&gt;-based stanza header, instead of your &lt;CODE&gt;source&lt;/CODE&gt;-based one.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457641#M79104</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-08T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457642#M79105</link>
      <description>&lt;P&gt;He does, but as you can see in his latest comments, he needed to override that for a specific source.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457642#M79105</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-08T14:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457643#M79106</link>
      <description>&lt;P&gt;Thanks woodcock this worked.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 07:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457643#M79106</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-07-09T07:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to line break</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457644#M79107</link>
      <description>&lt;P&gt;correct, this is an over-ride as the date format is different in this log&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 07:20:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-line-break/m-p/457644#M79107</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-07-09T07:20:40Z</dc:date>
    </item>
  </channel>
</rss>

