<?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 Remove linebreak characters from nbe files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42291#M7855</link>
    <description>&lt;P&gt;Yes, that is exactly how the nbe logs look prior to being splunked by splunk. Furthermore, your SEDCMD script removed the literal \n perfectly! Thanks a million!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2011 13:14:38 GMT</pubDate>
    <dc:creator>I-Man</dc:creator>
    <dc:date>2011-07-14T13:14:38Z</dc:date>
    <item>
      <title>How do I Remove linebreak characters from nbe files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42289#M7853</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;We have Nessus running on a Linux server which also has a Splunk Heavy Forwarder 4.1.8. We have the Nessus reports going to a certain directory which Splunk Monitors locally and sends to our Indexer. The results are in this format when they reach the indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;results|domain.com|nessus.domain.com|general/tcp|19506|Security Note|\nSynopsis :\n\nInformation about the Nessus scan.\n\nDescription :\n\nThis script displays, for each tested host, information about the scan itself:\n\n - The version of the plugin set\n - The type of plugin feed (HomeFeed or ProfessionalFeed)\n - The version of the Nessus Engine\n - The port scanner(s) used\n - The port range scanned\n - The date of the scan\n - The duration of the scan\n - The number of hosts scanned in parallel\n - The number of checks done in parallel\n\nSolution :\n\nn/a\n\nRisk factor :\n\nNone\n\nPlugin output :\n\nInformation about this scan : \n\nNessus version...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to remove the line break characters (\n AND \n\n) so i can create fields with for Description and Synopsis. I'm thinking this will involve a props and maybe a transform however I haven't been able to find any documentation on how to do this. Thanks in advance for any help!&lt;/P&gt;

&lt;P&gt;I-Man&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 20:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42289#M7853</guid>
      <dc:creator>I-Man</dc:creator>
      <dc:date>2011-07-13T20:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Remove linebreak characters from nbe files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42290#M7854</link>
      <description>&lt;P&gt;Are these actual line break characters, or are they literally a "\" followed by an "n" ?  I have never seen Splunk fail to properly consume and deal with actual newlines (CR+LF or LF alone).  My guess is these are real backslashes followed by n's.  You could check the raw files nessus makes before Splunk consumes them, just to make sure.&lt;/P&gt;

&lt;P&gt;If that is what they are, then you can easily use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to fix up the input.  I think something like this would work in &lt;CODE&gt;props.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
SEDCMD-backslash_n = s/\\n//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2011 01:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42290#M7854</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-07-14T01:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Remove linebreak characters from nbe files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42291#M7855</link>
      <description>&lt;P&gt;Yes, that is exactly how the nbe logs look prior to being splunked by splunk. Furthermore, your SEDCMD script removed the literal \n perfectly! Thanks a million!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 13:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Remove-linebreak-characters-from-nbe-files/m-p/42291#M7855</guid>
      <dc:creator>I-Man</dc:creator>
      <dc:date>2011-07-14T13:14:38Z</dc:date>
    </item>
  </channel>
</rss>

