<?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 props.conf Line Breaking in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314857#M58949</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;I have several events with different time stamps that I'm trying to breakup.  The props file I'm using is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=applogs
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=false
BREAK_ONLY_BEFORE = ^(\d{2}\:\d{2}\:\d{2}\||\d{4}\-\d{2}\-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\d\/\d{2}\/\d{4}\s+?\d{2}:\d{2}:\d{2}:)
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, I also use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=applogs
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)( \d{2}\:\d{2}\:\d{2}\||\d{4}\-\d{2}\-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\d\/\d{2}\/\d{4}\s+?\d{2}:\d{2}:\d{2}:)
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The logs look like this:&lt;/P&gt;

&lt;P&gt;14:49:27| stuff&lt;BR /&gt;
14:49:27|stuff&lt;BR /&gt;
14:49:28|stuff&lt;/P&gt;

&lt;P&gt;Another log looks like&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;/P&gt;

&lt;P&gt;And yet another log looks like this:&lt;/P&gt;

&lt;P&gt;7/17/2017  17:01:58.345, stuff&lt;BR /&gt;
7/17/2017  17:01:58.355, stuff&lt;BR /&gt;
7/17/2017  17:01:58.376, stuff&lt;/P&gt;

&lt;P&gt;Could someone let me know what I'm doing wrong in my prop.conf files?  For some reason they're not breaking up the file&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2017 21:06:56 GMT</pubDate>
    <dc:creator>Svill321</dc:creator>
    <dc:date>2017-07-17T21:06:56Z</dc:date>
    <item>
      <title>props.conf Line Breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314857#M58949</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;I have several events with different time stamps that I'm trying to breakup.  The props file I'm using is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=applogs
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=false
BREAK_ONLY_BEFORE = ^(\d{2}\:\d{2}\:\d{2}\||\d{4}\-\d{2}\-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\d\/\d{2}\/\d{4}\s+?\d{2}:\d{2}:\d{2}:)
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, I also use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=applogs
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)( \d{2}\:\d{2}\:\d{2}\||\d{4}\-\d{2}\-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}|\d\/\d{2}\/\d{4}\s+?\d{2}:\d{2}:\d{2}:)
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The logs look like this:&lt;/P&gt;

&lt;P&gt;14:49:27| stuff&lt;BR /&gt;
14:49:27|stuff&lt;BR /&gt;
14:49:28|stuff&lt;/P&gt;

&lt;P&gt;Another log looks like&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;BR /&gt;
7/17/2017  17:02:12:stuff&lt;/P&gt;

&lt;P&gt;And yet another log looks like this:&lt;/P&gt;

&lt;P&gt;7/17/2017  17:01:58.345, stuff&lt;BR /&gt;
7/17/2017  17:01:58.355, stuff&lt;BR /&gt;
7/17/2017  17:01:58.376, stuff&lt;/P&gt;

&lt;P&gt;Could someone let me know what I'm doing wrong in my prop.conf files?  For some reason they're not breaking up the file&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 21:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314857#M58949</guid>
      <dc:creator>Svill321</dc:creator>
      <dc:date>2017-07-17T21:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf Line Breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314858#M58950</link>
      <description>&lt;P&gt;Hi Svill321,&lt;/P&gt;

&lt;P&gt;here is a quick check list:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;What are you applying this on? source, sourcetype or host? Check for typos&lt;/LI&gt;
&lt;LI&gt;Where is this &lt;CODE&gt;props.conf&lt;/CODE&gt; applied? Must be on the parsing layer, either heavyweight forwarder or indexer&lt;/LI&gt;
&lt;LI&gt;Check with &lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool props list&lt;/CODE&gt; if your config on the parsing instance is applied correctly&lt;/LI&gt;
&lt;LI&gt;your first regex does not match, try this &lt;CODE&gt;\d{2}\:\d{2}\:\d{2}\||\d\/\d{2}\/\d{4}\s+\d{2}:\d{2}:\d{2}:|\d\/\d{2}\/\d{4}\s+\d{2}:\d{2}:\d{2}\.\d{3},&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; only works if Splunk encounters a &lt;STRONG&gt;new line&lt;/STRONG&gt; that
matches the regular expression.&lt;/LI&gt;
&lt;LI&gt;same with the second regex, try this instead `([\r\n]+)\d{2}:\d{2}:\d{2}||\d\/\d{2}\/\d{4}\s+\d{2}:\d{2}:\d{2}:|\d\/\d{2}\/\d{4}\s+\d{2}:\d{2}:\d{2}.\d{3},&lt;/LI&gt;
&lt;LI&gt;did you restart the parsing Splunk instance after the changes?&lt;/LI&gt;
&lt;LI&gt;This will only be applied to new arriving events, it is not applied to any existing already indexed events&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope this helps to trace down the error ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 01:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314858#M58950</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-07-18T01:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf Line Breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314859#M58951</link>
      <description>&lt;P&gt;Suggest use different stanzas  with &lt;A href="https://community.splunk.com/or%20sourcetype%20if%20applicable" target="_blank"&gt;source::....&lt;/A&gt; to do line break for each different type logs.&lt;BR /&gt;
E.g. for each source:&lt;/P&gt;

&lt;P&gt;[source::...source1...]&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
DATETIME_CONFIG = none&lt;BR /&gt;
TIME_FORMAT = XXXX   // set as log shows&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:57:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-Line-Breaking/m-p/314859#M58951</guid>
      <dc:creator>fredzhang</dc:creator>
      <dc:date>2020-09-29T14:57:42Z</dc:date>
    </item>
  </channel>
</rss>

