<?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: Why is Splunk log line breaking not working as expected for my multiline events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255984#M49155</link>
    <description>&lt;P&gt;I saw what I did&lt;BR /&gt;
See this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([nr]+)((d{4}-d{2}-d{2}) )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More specifically this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;([nr]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"([\r\n]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;once I changed it and updated, it is breaking correctly.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 20:07:09 GMT</pubDate>
    <dc:creator>tkwaller</dc:creator>
    <dc:date>2015-12-03T20:07:09Z</dc:date>
    <item>
      <title>Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255971#M49142</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have some multiline events along with normal single line events in a log that is being monitored by Splunk. For some reason, I can't get the multiline event to merge as one event, it always breaks before "Date". Here's the log record that's not breaking correctly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-12-03 14:16:51,099 [9892#0001/xxxxx] thread=1 priority=DEBUG app_name=xxxx log_source=Ixxxx - Response Headers=cxxxx
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Content-Encoding: 
com-xxsx-dye: _xxxx
title=wwww
Transfer-Encoding: chunked
Connection: Keep-Alive
Cache-Control: max-age=300
Content-Type: application/json
Date: Thu, 03 Dec 2015 14:16:50 GMT
Server: xxxx
X-Powered-By: xxxx
, Content={"bunch of stuff here}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what it looks like in Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12/3/15
8:16:51.099 AM  
2015-12-03 14:16:51,099 [9892#0001/xxx] thread=1 priority=DEBUG app_name=xxx log_source=xxx - Response Headers=cxxx
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Content-Encoding: 
com-xxx-dye: _xxx
title=wwww
Transfer-Encoding: chunked
Connection: Keep-Alive
Cache-Control: max-age=300
Content-Type: application/json

12/3/15
8:16:50.000 AM  
Date: Thu, 03 Dec 2015 14:16:50 GMT
Server: xxx
X-Powered-By: xxx
, Content={bunch of stuff here}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is my props.conf from the search head cluster:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
MAX_TIMESTAMP_LOOKAHEAD = 20
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = true
TIME_FORMAT = %Y-%m-%d %H:%M:%S
TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm fairly certain it's breaking on "Date" due to the second timestamp in the record BUT since I specified the time format shouldn't it NOT break there? &lt;BR /&gt;
How can I prevent it from breaking there?&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 14:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255971#M49142</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-12-03T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255972#M49143</link>
      <description>&lt;P&gt;See if this fixes it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE=\d{4}-\d{2}-\d{2}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Dec 2015 15:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255972#M49143</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-03T15:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255973#M49144</link>
      <description>&lt;P&gt;We usually set linemerge to false, and use line breaker before the timestamp. EG: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
LINE_BREAKER = ([\n\r]+)(?=\d{4}-\d{2}-\d{2})
DATETIME_CONFIG = /etc/datetime.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's always worth testing your breaks in a regex tool (for example &lt;A href="https://www.debuggex.com/"&gt;https://www.debuggex.com/&lt;/A&gt; theres loads out there), and you can always use the Add Data tool in the Splunk Web UI&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255973#M49144</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-03T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255974#M49145</link>
      <description>&lt;P&gt;Just to reinforce this:  use &lt;CODE&gt;SHOULD_LINEMERGE=false&lt;/CODE&gt; and &lt;CODE&gt;LINE_BREAKER=&lt;/CODE&gt; whenever possible. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255974#M49145</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2015-12-03T16:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255975#M49146</link>
      <description>&lt;P&gt;I made the props.conf as suggested:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tt_integrationengine]
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE=\d{4}-\d{2}-\d{2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and re-pushed the change to the SH Cluster but the search results are still the same as above&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:25:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255975#M49146</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-12-03T16:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255976#M49147</link>
      <description>&lt;P&gt;I tried this as well, I don't have "/etc/datetime.xml" so I omitted that portion&lt;BR /&gt;
Still the same as above. I updated my props to:&lt;BR /&gt;
[timestamp]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = false
LINE_BREAKER = ([nr]+)((\d{4}-\d{2}-\d{2})  )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should ONLY pick up the initial datetime stamp as it is the ONLY one preceeded by ([nr]+) as well as being the ONLY one that has an included space after the date and before the time that follows the &lt;CODE&gt;\d{4}-\d{2}-\d{2}&lt;/CODE&gt; format&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255976#M49147</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-12-03T17:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255977#M49148</link>
      <description>&lt;P&gt;It should indeed! &lt;/P&gt;

&lt;P&gt;You could use TIME_FORMAT and TIME_PREFIX instead of DATETIME_CONFIG. And as the timestamp will always be at the start of the line you can drop MAX_TIMESTAMP_LOOKAHEAD&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255977#M49148</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2020-09-29T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255978#M49149</link>
      <description>&lt;P&gt;In a previous comment you noted that you pushed this to the SH cluster.  Linebreaking and timestamping are index-time operations, so these props need to be included on the indexers as well.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255978#M49149</guid>
      <dc:creator>vasildavid</dc:creator>
      <dc:date>2015-12-03T17:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255979#M49150</link>
      <description>&lt;P&gt;Ha! I originally had that there:&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = ^&lt;/P&gt;

&lt;P&gt;I put it back in, we'll see if that makes a difference. Currently there have been no changes in breaking&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255979#M49150</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2020-09-29T08:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255980#M49151</link>
      <description>&lt;P&gt;try moving your props.conf to the indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255980#M49151</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-03T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255981#M49152</link>
      <description>&lt;P&gt;Ah I see, thats probably the problem then. Will move the app and deploy to the indexers&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 18:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255981#M49152</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-12-03T18:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255982#M49153</link>
      <description>&lt;P&gt;So after adding the &lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = ^&lt;/P&gt;

&lt;P&gt;and adding the props.conf app to the indexers, the logging still has not changed. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
This is the hardest time I've had with linebreaking, usually its really easy&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255982#M49153</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2020-09-29T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255983#M49154</link>
      <description>&lt;P&gt;run &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool props list --debug&lt;/CODE&gt; on your indexer, to make sure that the changes have been applied correctly. Also have you confirmed that the regex breaks your events properly using a regex checker as I suggested? The text in your files may not be identical to what you posted here, due to format changes. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 18:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255983#M49154</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-03T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk log line breaking not working as expected for my multiline events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255984#M49155</link>
      <description>&lt;P&gt;I saw what I did&lt;BR /&gt;
See this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([nr]+)((d{4}-d{2}-d{2}) )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More specifically this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;([nr]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"([\r\n]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;once I changed it and updated, it is breaking correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 20:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-log-line-breaking-not-working-as-expected-for-my/m-p/255984#M49155</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-12-03T20:07:09Z</dc:date>
    </item>
  </channel>
</rss>

