<?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 you remove part of a field value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447143#M168289</link>
    <description>&lt;P&gt;Hi @zikpefu&lt;/P&gt;

&lt;P&gt;escape '+' &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval SearchTerm=replace(SearchTerm,"\+"," ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jul 2018 13:05:13 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-07-18T13:05:13Z</dc:date>
    <item>
      <title>How do you remove part of a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447142#M168288</link>
      <description>&lt;P&gt;I am trying to remove the +'s in between words for my table (i.e. &lt;STRONG&gt;stainless+steel&lt;/STRONG&gt; to be just &lt;STRONG&gt;stainless steel&lt;/STRONG&gt;) and my field name is SearchTerm. I tried the eval replace command method but it keeps saying &lt;EM&gt;Regex quantifier does not follow repeatable item&lt;/EM&gt;; I do not know what to do. Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;My eval command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval SearchTerm=replace(SearchTerm,"+"," ")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: Spelling&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 12:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447142#M168288</guid>
      <dc:creator>zikpefu</dc:creator>
      <dc:date>2018-07-18T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you remove part of a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447143#M168289</link>
      <description>&lt;P&gt;Hi @zikpefu&lt;/P&gt;

&lt;P&gt;escape '+' &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval SearchTerm=replace(SearchTerm,"\+"," ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447143#M168289</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-18T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you remove part of a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447144#M168290</link>
      <description>&lt;P&gt;You need to escape like this (because &lt;CODE&gt;+&lt;/CODE&gt; is a special command character):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval SearchTerm=replace(SearchTerm,"\+"," ")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=SearchTerm mode=sed "s/\+/ /g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-remove-part-of-a-field-value/m-p/447144#M168290</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-18T13:12:08Z</dc:date>
    </item>
  </channel>
</rss>

