<?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: How do I break multiline events beginning with a #? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415945#M174335</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;# /opt//splunkforwarder/bin/splunk btool props list audit                                          
[audit]
ANNOTATE_PUNCT = True
AUTO_KV_JSON = true
BREAK_ONLY_BEFORE = ([\r\n]+)\x23
BREAK_ONLY_BEFORE_DATE = True
CHARSET = UTF-8
DATETIME_CONFIG = /etc/datetime.xml
HEADER_MODE =
LEARN_MODEL = true
LEARN_SOURCETYPE = true
LINE_BREAKER_LOOKBEHIND = 100
MATCH_LIMIT = 100000
MAX_DAYS_AGO = 2000
MAX_DAYS_HENCE = 2
MAX_DIFF_SECS_AGO = 3600
MAX_DIFF_SECS_HENCE = 604800
MAX_EVENTS = 256
MAX_TIMESTAMP_LOOKAHEAD = 27
MUST_BREAK_AFTER =
MUST_NOT_BREAK_AFTER =
MUST_NOT_BREAK_BEFORE =
SEGMENTATION = indexing
SEGMENTATION-all = full
SEGMENTATION-inner = inner
SEGMENTATION-outer = outer
SEGMENTATION-raw = none
SEGMENTATION-standard = standard
SHOULD_LINEMERGE = true
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
TIME_PREFIX = ^\x23\s
TRANSFORMS =
TRUNCATE = 10000
detect_trailing_nulls = false
maxDist = 500
priority =
sourcetype =
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Nov 2018 14:41:43 GMT</pubDate>
    <dc:creator>ktn01</dc:creator>
    <dc:date>2018-11-30T14:41:43Z</dc:date>
    <item>
      <title>How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415941#M174331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have to break an event that begins with a # on the first line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ds-sync-hist: modifyTimestamp:00000167645c911a3acb006bebe0:repl:20181130112407Z
-

# 30/Nov/2018:12:24:09 +0100; conn=-3; op=70042
dn: dc    changetype: modify
replace: ds-sync-state
ds-sync-state: 00000167645c911a3acb006bebe0
ds-sync-state: 000001545149cb662a7e00000008
ds-sync-state: 000001547c812c73545b00000006
ds-sync-state: 0000015451332949677000030def
ds-sync-state: 000001670cc99f4378f6000132aa
-

# 30/Nov/2018:12:26:03 +0100; conn=-2; op=70043
dn: u...    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with &lt;CODE&gt;BREAK_ONLY_BEFORE = ^\#&lt;/CODE&gt; and &lt;CODE&gt;BREAK_ONLY_BEFORE = ^#&lt;/CODE&gt;on &lt;CODE&gt;props.conf&lt;/CODE&gt; but this does not work probably because # is interpreted as the beginning of a comment.&lt;/P&gt;

&lt;P&gt;here is the content of my &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[audit]
TIME_PREFIX = ^#\s
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
MAX_TIMESTAMP_LOOKAHEAD = 27
BREAK_ONLY_BEFORE = ^\#
SHOULD_LINEMERGE = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415941#M174331</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2018-11-30T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415942#M174332</link>
      <description>&lt;P&gt;When you run &lt;CODE&gt;btool props list audit&lt;/CODE&gt; what does it show for TIME_PREFIX and  BREAK_ONLY_BEFORE?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415942#M174332</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T22:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415943#M174333</link>
      <description>&lt;P&gt;Not sure if that break only before would be the right solution anyway, even if the character wouldn't be causing special behavior.&lt;/P&gt;

&lt;P&gt;I'd say, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or, to prevent issues with the &lt;CODE&gt;#&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\x23
TIME_PREFIX = ^\x23\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/EPG7gB/1"&gt;https://regex101.com/r/EPG7gB/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415943#M174333</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-30T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415944#M174334</link>
      <description>&lt;P&gt;Thank's for your answer but my new &lt;CODE&gt;props.conf&lt;/CODE&gt; does not work better:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[audit]
TIME_PREFIX = ^\x23\s
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
MAX_TIMESTAMP_LOOKAHEAD = 27
BREAK_ONLY_BEFORE = ([\r\n]+)\x23
SHOULD_LINEMERGE = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415944#M174334</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2018-11-30T14:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415945#M174335</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;# /opt//splunkforwarder/bin/splunk btool props list audit                                          
[audit]
ANNOTATE_PUNCT = True
AUTO_KV_JSON = true
BREAK_ONLY_BEFORE = ([\r\n]+)\x23
BREAK_ONLY_BEFORE_DATE = True
CHARSET = UTF-8
DATETIME_CONFIG = /etc/datetime.xml
HEADER_MODE =
LEARN_MODEL = true
LEARN_SOURCETYPE = true
LINE_BREAKER_LOOKBEHIND = 100
MATCH_LIMIT = 100000
MAX_DAYS_AGO = 2000
MAX_DAYS_HENCE = 2
MAX_DIFF_SECS_AGO = 3600
MAX_DIFF_SECS_HENCE = 604800
MAX_EVENTS = 256
MAX_TIMESTAMP_LOOKAHEAD = 27
MUST_BREAK_AFTER =
MUST_NOT_BREAK_AFTER =
MUST_NOT_BREAK_BEFORE =
SEGMENTATION = indexing
SEGMENTATION-all = full
SEGMENTATION-inner = inner
SEGMENTATION-outer = outer
SEGMENTATION-raw = none
SEGMENTATION-standard = standard
SHOULD_LINEMERGE = true
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
TIME_PREFIX = ^\x23\s
TRANSFORMS =
TRUNCATE = 10000
detect_trailing_nulls = false
maxDist = 500
priority =
sourcetype =
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415945#M174335</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2018-11-30T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I break multiline events beginning with a #?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415946#M174336</link>
      <description>&lt;P&gt;Ok, so the issue probably wasn't (only) with the &lt;CODE&gt;#&lt;/CODE&gt; character. As I mentioned: try using line_breaker and linemerge = false, instead of break only before.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 15:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-break-multiline-events-beginning-with-a/m-p/415946#M174336</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-30T15:47:58Z</dc:date>
    </item>
  </channel>
</rss>

