<?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 Why does Splunk sometimes insert the a blank line in forwarded log4net logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141189#M28921</link>
    <description>&lt;P&gt;I have the following log punch by log4net&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATE   :   02-10-2015 05:06:37
URL    :   &lt;A href="http://localhost/229/processType/BY" target="test_blank"&gt;http://localhost/229/processType/BY&lt;/A&gt;
TYPE   :   ERROR 
DETAILS:
System.Exception: Max TM connection failed, StatusCode:Accepted ,MaxAttempt:21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But by using forwarder i am getting the following log punch on indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATE   :   02-10-2015 05:06:37
URL    :   &lt;A href="http://localhost/229/processType/BY" target="test_blank"&gt;http://localhost/229/processType/BY&lt;/A&gt;
TYPE   :   ERROR 
DETAILS:

System.Exception: Max TM connection failed, StatusCode:Accepted ,MaxAttempt:21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;one extra space is included under Details which search does not process for "Max TM connection failed". and no line break i.e ------------&lt;BR /&gt;
included in the indexer log. This is happening on some events, not all events.&lt;/P&gt;

&lt;P&gt;Can you please let me know why this issue arises and what is the workaround for this?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2015 05:55:26 GMT</pubDate>
    <dc:creator>rajeevmcaiomedi</dc:creator>
    <dc:date>2015-02-11T05:55:26Z</dc:date>
    <item>
      <title>Why does Splunk sometimes insert the a blank line in forwarded log4net logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141189#M28921</link>
      <description>&lt;P&gt;I have the following log punch by log4net&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATE   :   02-10-2015 05:06:37
URL    :   &lt;A href="http://localhost/229/processType/BY" target="test_blank"&gt;http://localhost/229/processType/BY&lt;/A&gt;
TYPE   :   ERROR 
DETAILS:
System.Exception: Max TM connection failed, StatusCode:Accepted ,MaxAttempt:21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But by using forwarder i am getting the following log punch on indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATE   :   02-10-2015 05:06:37
URL    :   &lt;A href="http://localhost/229/processType/BY" target="test_blank"&gt;http://localhost/229/processType/BY&lt;/A&gt;
TYPE   :   ERROR 
DETAILS:

System.Exception: Max TM connection failed, StatusCode:Accepted ,MaxAttempt:21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;one extra space is included under Details which search does not process for "Max TM connection failed". and no line break i.e ------------&lt;BR /&gt;
included in the indexer log. This is happening on some events, not all events.&lt;/P&gt;

&lt;P&gt;Can you please let me know why this issue arises and what is the workaround for this?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 05:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141189#M28921</guid>
      <dc:creator>rajeevmcaiomedi</dc:creator>
      <dc:date>2015-02-11T05:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk sometimes insert the a blank line in forwarded log4net logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141190#M28922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would have tried to configure LINE_BREAKER in props.conf for the source type . I have earlier had success with this in similar events / problems. By configure the line_breaker you say to splunk not break your events on standard new-line, break och what ever ... which might be the case.&lt;/P&gt;

&lt;P&gt;example&lt;BR /&gt;
    LINE_BREAKER = ([\r\n]+)DATE\s++:\s++\d{2}-\d{2}-\d{4}&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)DATE\s++\:\s++\d{2}\-\d{2}\-\d{4}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141190#M28922</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2020-09-28T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk sometimes insert the a blank line in forwarded log4net logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141191#M28923</link>
      <description>&lt;P&gt;You could open your look file (the source) in some good text-editor like notepad++ and check for line breaks , character returns and other "hidden" stuff , to make sure the source is not appending anything Splunk breaks or splits events on .. i have not seen splunk adding stuff by it selfs&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 19:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-sometimes-insert-the-a-blank-line-in-forwarded/m-p/141191#M28923</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2015-02-11T19:33:14Z</dc:date>
    </item>
  </channel>
</rss>

