<?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: Help with props.conf, LINE_BREAKER in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94534#M19669</link>
    <description>&lt;P&gt;I have tried the following settings without success:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ~\\

LINE_BREAKER = ~\\^

LINE_BREAKER = ([~\\]+)

LINE_BREAKER = (.*)[~\\](.*)

LINE_BREAKER = .*~\\.*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example string would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5~\SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?~\SMSEMO_0000:P:Posting : &lt;A href="http://someurlwithparameters~\" target="test_blank"&gt;http://someurlwithparameters~\&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The end result should be multiline events split by ~\ like so:&lt;/P&gt;

&lt;P&gt;Event 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 3:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEMO_0000:P:Posting : &lt;A href="http://someurlwithparameters" target="test_blank"&gt;http://someurlwithparameters&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm no regexp guru, but I thought this would be easier &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2011 14:11:25 GMT</pubDate>
    <dc:creator>Megamuch</dc:creator>
    <dc:date>2011-05-04T14:11:25Z</dc:date>
    <item>
      <title>Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94532#M19667</link>
      <description>&lt;P&gt;While testing out Splunk I wanted to see if I could easily create a custom input into splunk using ncat and the UDP splunk input.&lt;/P&gt;

&lt;P&gt;The input works, now I have to tell splunk how to split the input stream. &lt;/P&gt;

&lt;P&gt;The input is a multiline string which contains either XML or pipe (|) delimited data but is always terminated by ~\&lt;/P&gt;

&lt;P&gt;So I created a new props.conf in %$SPLUNK_HOME%/etc/system/local/ and added the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::c:\\splunkinput\\my.log]
LINE_BREAKER = ^~\$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unfortunately nothing happens and I have not yet figured out how to check what exactly is going when importing a new file into splunk.&lt;/P&gt;

&lt;P&gt;The end result should be for every sequence (with carriage returns etc) between ~\ should be considered a new event. &lt;/P&gt;

&lt;P&gt;Any tips?&lt;/P&gt;

&lt;P&gt;P.s. is there a way to activate the props.conf changes without restarting splunkd?&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 09:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94532#M19667</guid>
      <dc:creator>Megamuch</dc:creator>
      <dc:date>2011-05-04T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94533#M19668</link>
      <description>&lt;P&gt;In your regex you need to escape the backslash as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ^~\\$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If &lt;CODE&gt;~\&lt;/CODE&gt; is not on a line by itself, drop the leading caret from your LINE_BREAKER definition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ~\\$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I believe for event parsing configurations (such as LINE_BREAKER) you need to restart splunkd, however search time configurations (field extractions for example) in props.conf are applied automatically without having to restart Splunkd.&lt;/P&gt;

&lt;P&gt;[EDIT Based on more info provided]&lt;/P&gt;

&lt;P&gt;Based on the sample data, give the following a try in your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::c:\\splunkinput\\my.log]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = false
MUST_BREAK_AFTER = ~\\
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2011 13:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94533#M19668</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-04T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94534#M19669</link>
      <description>&lt;P&gt;I have tried the following settings without success:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ~\\

LINE_BREAKER = ~\\^

LINE_BREAKER = ([~\\]+)

LINE_BREAKER = (.*)[~\\](.*)

LINE_BREAKER = .*~\\.*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example string would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5~\SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?~\SMSEMO_0000:P:Posting : &lt;A href="http://someurlwithparameters~\" target="test_blank"&gt;http://someurlwithparameters~\&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The end result should be multiline events split by ~\ like so:&lt;/P&gt;

&lt;P&gt;Event 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEUCP_7110:STATUS:1049110|7116|7110|192.168.0.5
1180178|7112|7110|192.168.0.5
14156304|7111|7110|192.168.0.5
1180174|7117|7110|192.168.0.5
1180170|7119|7110|192.168.0.5
5767676|7113|7110|192.168.0.5
5308816|7114|7110|192.168.0.5
1573452|7115|7110|192.168.0.5
2426006|7118|7110|192.168.0.5
11141326|7110|7110|192.168.0.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEMO_0000:S:(0000) Incoming : 3161234567 oh really? let do that then, ok?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 3:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SMSEMO_0000:P:Posting : &lt;A href="http://someurlwithparameters" target="test_blank"&gt;http://someurlwithparameters&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm no regexp guru, but I thought this would be easier &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 14:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94534#M19669</guid>
      <dc:creator>Megamuch</dc:creator>
      <dc:date>2011-05-04T14:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94535#M19670</link>
      <description>&lt;P&gt;I've updated my answer based on the sample data. If that doesnt work, try playing around with some other line breaking settings in props.conf: &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Propsconf"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 15:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94535#M19670</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-04T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94536#M19671</link>
      <description>&lt;P&gt;Hmm, can you use &lt;CODE&gt;^&lt;/CODE&gt; in &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;?  I would think that you'd always need to use something like &lt;CODE&gt;[\r\n]+&lt;/CODE&gt; instead of &lt;CODE&gt;^&lt;/CODE&gt; or &lt;CODE&gt;$&lt;/CODE&gt;... Just my 2 cents.. And after re-reading all this info, I don't think you want to use end-of-string (&lt;CODE&gt;$&lt;/CODE&gt;), start-of-string (&lt;CODE&gt;^&lt;/CODE&gt;), or traditional-end-of-line (&lt;CODE&gt;[\r\n]&lt;/CODE&gt;) stuff at all...&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94536#M19671</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-10-11T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf, LINE_BREAKER</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94537#M19672</link>
      <description>&lt;P&gt;I think you simply want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
LINE_BREAKER = (~\\)
# You may need to increase this (default 100)
LINE_BREAKER_LOOKBEHIND = 1000
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are two things to consider here:  1.)  Splunk wants a matching group in the LINE_BREAKER, and 2.) I'm not sure it's valid to end a regex with the backslash (&lt;CODE&gt;\&lt;/CODE&gt;) character.  But I could be wrong.&lt;/P&gt;

&lt;P&gt;I just re-read the question, and it sounds like you also want newlines to be split events.  If that's correct, then try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = (~\\|[\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-LINE-BREAKER/m-p/94537#M19672</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-10-11T15:42:02Z</dc:date>
    </item>
  </channel>
</rss>

