<?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 my Event line breaking not working properly? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356348#M65077</link>
    <description>&lt;P&gt;I would give this a try. Also ensure that you kept this config in right place (Indexer/heavy forwarder whichever comes first in flow)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SOURCETYPE_NAME]
 SHOULD_LINEMERGE = false
 LINE_BREAKER = ([\r\n]+)(?=\s*\{\s*\"timestam_ns\")
 TIME_FORMAT = %s%9N
 TIME_PREFIX = ^\s*\{\s*\"timestam_ns\"
 MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Jun 2017 16:36:52 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-06-16T16:36:52Z</dc:date>
    <item>
      <title>Why is my Event line breaking not working properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356347#M65076</link>
      <description>&lt;P&gt;Hi, I've reviewed almost all the question about event line breaking but still have some inconsistency with data ingesting to my Splunk Enterprise. Is there any sort of debugging/logging system for data input and the method which Splunk use to handle multiline events. My data looks like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;{"timestamp_ns":1497623896051426216,"timestamp":1497623896,"measurements":{"response_send_time_us":147,"walltime_us":1003,"xxxxx_walltime_us":493,"xxxxx_walltime_us":510,"xxxxx_time_us":159,"xxxxx_time_us":120,"xxxxx_time_us":82},"application":"xxxxx","type":"xxxxx_query_request","metadata":{"request_type":2,"xx_id":1,"request_timestamp_ns":1497623896050422653,"request_id":"1234567890123456789"}}&lt;BR /&gt;
    {"timestamp_ns":1497623896051426216,"timestamp":1497623896,"measurements":{"response_send_time_us":147,"walltime_us":1003,"xxxxx_walltime_us":493,"xxxxx_walltime_us":510,"xxxxx_time_us":159,"xxxxx_time_us":120,"xxxxx_time_us":82},"application":"xxxxx","type":"xxxxx_query_request","metadata":{"request_type":2,"xx_id":1,"request_timestamp_ns":1497623896050422653,"request_id":"1234567890123456789"}}&lt;BR /&gt;
    {"timestamp_ns":1497623896051426216,"timestamp":1497623896,"measurements":{"response_send_time_us":147,"walltime_us":1003,"xxxxx_walltime_us":493,"xxxxx_walltime_us":510,"xxxxx_time_us":159,"xxxxx_time_us":120,"xxxxx_time_us":82},"application":"xxxxx","type":"xxxxx_query_request","metadata":{"request_type":2,"xx_id":1,"request_timestamp_ns":1497623896050422653,"request_id":"1234567890123456789"}}&lt;BR /&gt;
    {"timestamp_ns":1497623896051426216,"timestamp":1497623896,"measurements":{"response_send_time_us":147,"walltime_us":1003,"xxxxx_walltime_us":493,"xxxxx_walltime_us":510,"xxxxx_time_us":159,"xxxxx_time_us":120,"xxxxx_time_us":82},"application":"xxxxx","type":"xxxxx_query_request","metadata":{"request_type":2,"xx_id":1,"request_timestamp_ns":1497623896050422653,"request_id":"1234567890123456789"}}&lt;BR /&gt;
Here's what I've tried in props.conf:&lt;/P&gt;

&lt;P&gt;[SOURCETYPE_NAME]&lt;BR /&gt;
    MAX_TIMESTAMP_LOOKAHEAD = 20&lt;BR /&gt;
    SHOULD_LINEMERGE = false&lt;BR /&gt;
    LINE_BREAKER = ([\r\n]+){\"timestam_ns\"&lt;BR /&gt;
    TIME_FORMAT = %s%9N&lt;BR /&gt;
    TIME_PREFIX = "timestamp_ns":&lt;BR /&gt;
For &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt;, I've tried other &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; as well, like &lt;CODE&gt;^\{&lt;/CODE&gt;, &lt;CODE&gt;([\r\n]+)\{&lt;/CODE&gt;, etc but no luck.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;[SOURCETYPE_NAME]
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = ^\{
TIME_FORMAT = %s%9N
TIME_PREFIX = "timestamp_ns":
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just for your information, I've tried manual &lt;EM&gt;Add Data&lt;/EM&gt; feature and both configs works fine there. And I'm testing these stuff on a Splunk Developer Personal License before applying the changes against the actual Enterprise version.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356347#M65076</guid>
      <dc:creator>msichani</dc:creator>
      <dc:date>2020-09-29T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Event line breaking not working properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356348#M65077</link>
      <description>&lt;P&gt;I would give this a try. Also ensure that you kept this config in right place (Indexer/heavy forwarder whichever comes first in flow)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SOURCETYPE_NAME]
 SHOULD_LINEMERGE = false
 LINE_BREAKER = ([\r\n]+)(?=\s*\{\s*\"timestam_ns\")
 TIME_FORMAT = %s%9N
 TIME_PREFIX = ^\s*\{\s*\"timestam_ns\"
 MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jun 2017 16:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356348#M65077</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-16T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Event line breaking not working properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356349#M65078</link>
      <description>&lt;P&gt;Hi msichani, &lt;/P&gt;

&lt;P&gt;try the following stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SOURCETYPE_NAME]
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = \{\"timestamp\_ns\"
TIME_FORMAT = %s%9N
TIME_PREFIX = "timestamp_ns":
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jun 2017 16:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356349#M65078</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-06-16T16:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Event line breaking not working properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356350#M65079</link>
      <description>&lt;P&gt;I think the trick was the right place, it was going through heavy forwarder, Added &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; and it looks fine now. Thanks for the hint @somesoni2&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 18:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356350#M65079</guid>
      <dc:creator>msichani</dc:creator>
      <dc:date>2017-06-16T18:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Event line breaking not working properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356351#M65080</link>
      <description>&lt;P&gt;The problem was with HF in between, your stanaza should definitely work as well but with proper routing. Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 18:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Event-line-breaking-not-working-properly/m-p/356351#M65080</guid>
      <dc:creator>msichani</dc:creator>
      <dc:date>2017-06-16T18:10:53Z</dc:date>
    </item>
  </channel>
</rss>

