<?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 to stop Splunk from breaking lines at Xml Fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39336#M7317</link>
    <description>&lt;P&gt;I would suggest&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::yoursourcepathhere]
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE_DATE = true
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might also want to check here in the manuals&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;Configure Timestamp Recognition&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Indexmulti-lineevents"&gt;Configure Event Linebreaking&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
Note that bad line-breaking is often related to bad timestamps.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2012 06:31:16 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-04-30T06:31:16Z</dc:date>
    <item>
      <title>How to stop Splunk from breaking lines at Xml Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39335#M7316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;6 Jun 17:09:07..................&lt;BR /&gt;
   &lt;XML&gt;&lt;BR /&gt;
   &amp;lt;..../&amp;gt;&lt;BR /&gt;
   &amp;lt;....../&amp;gt;&lt;BR /&gt;
   &amp;lt;....../&amp;gt;&lt;BR /&gt;
   abcd&lt;BR /&gt;
   hjkkk&lt;BR /&gt;
   jjjjk&lt;/XML&gt;&lt;/P&gt;

&lt;P&gt;This is the content of a file iam working with.Splunk breaks events at each line i have given above.Iam getting Output like this ,as 8 events.&lt;BR /&gt;
1 6 Jun 17:09:07..................&lt;/P&gt;

&lt;P&gt;2   &lt;XML&gt;&lt;/XML&gt;&lt;/P&gt;

&lt;P&gt;3   &amp;lt;..../&amp;gt;&lt;/P&gt;

&lt;P&gt;4  &amp;lt;....../&amp;gt;&lt;/P&gt;

&lt;P&gt;5  &amp;lt;....../&amp;gt;&lt;/P&gt;

&lt;P&gt;6  abcd&lt;/P&gt;

&lt;P&gt;7  hjkkk&lt;/P&gt;

&lt;P&gt;8  jjjjk&lt;/P&gt;

&lt;P&gt;I want to break lines only on date ie(only one event).I have tried following configarations in  props.config but its not working&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE =false&lt;BR /&gt;
BREAK_ONLY_BEFORE=^6 Jun&lt;/P&gt;

&lt;P&gt;[source::.........]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
MUST_NOT_BREAK_BEFORE =^&amp;lt;&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39335#M7316</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2020-09-28T11:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Splunk from breaking lines at Xml Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39336#M7317</link>
      <description>&lt;P&gt;I would suggest&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::yoursourcepathhere]
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE_DATE = true
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might also want to check here in the manuals&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;Configure Timestamp Recognition&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Indexmulti-lineevents"&gt;Configure Event Linebreaking&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
Note that bad line-breaking is often related to bad timestamps.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 06:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39336#M7317</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-04-30T06:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Splunk from breaking lines at Xml Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39337#M7318</link>
      <description>&lt;P&gt;Thanks Iguinn.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 11:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-Splunk-from-breaking-lines-at-Xml-Fields/m-p/39337#M7318</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-04-30T11:07:03Z</dc:date>
    </item>
  </channel>
</rss>

