<?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 remove a carriage return from a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92906#M23963</link>
    <description>&lt;P&gt;This should replace all carriage returns or linefeeds with a space in a field named myField:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval myField = replace (myField, "[\n\r]"," ")
| morestuffhere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your data is from Windows and has CRLF in it, this will replace the CRLF with two spaces.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2013 22:43:18 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-07-11T22:43:18Z</dc:date>
    <item>
      <title>How to remove a carriage return from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92904#M23961</link>
      <description>&lt;P&gt;I have outputted events in csv format, and have a field which has carriage returns in it. How can use regex to remove the returns only from the field, in the search. Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 19:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92904#M23961</guid>
      <dc:creator>allen_edmondson</dc:creator>
      <dc:date>2013-07-11T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a carriage return from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92905#M23962</link>
      <description>&lt;P&gt;do you have more than one carriage return in the field value??&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 21:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92905#M23962</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-07-11T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a carriage return from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92906#M23963</link>
      <description>&lt;P&gt;This should replace all carriage returns or linefeeds with a space in a field named myField:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval myField = replace (myField, "[\n\r]"," ")
| morestuffhere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your data is from Windows and has CRLF in it, this will replace the CRLF with two spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92906#M23963</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-07-11T22:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a carriage return from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92907#M23964</link>
      <description>&lt;P&gt;A refinement would be to make the regex "[\n\r]+" which would see one or more carriage returns or line feeds (or any combination thereof) with a single space.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 23:45:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-carriage-return-from-a-field/m-p/92907#M23964</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-07-11T23:45:23Z</dc:date>
    </item>
  </channel>
</rss>

