<?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 isn't my replace command working in this search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362017#M106950</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=test TransactionId="xxx-xxx-xxx"|  replace "000" with "" in Status| fields Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to replace the first occurrence of "000" in status to blank.This is the command I wrote after referring to Splunk Documentation. However, the results don't show me the modified value of Status. Is there something missing in the command?&lt;/P&gt;

&lt;P&gt;My end result should be the value of Status with "000" replaced.&lt;/P&gt;

&lt;P&gt;Thanks for your help &lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 19:00:20 GMT</pubDate>
    <dc:creator>nisha_kapoor</dc:creator>
    <dc:date>2017-08-10T19:00:20Z</dc:date>
    <item>
      <title>Why isn't my replace command working in this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362017#M106950</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=test TransactionId="xxx-xxx-xxx"|  replace "000" with "" in Status| fields Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to replace the first occurrence of "000" in status to blank.This is the command I wrote after referring to Splunk Documentation. However, the results don't show me the modified value of Status. Is there something missing in the command?&lt;/P&gt;

&lt;P&gt;My end result should be the value of Status with "000" replaced.&lt;/P&gt;

&lt;P&gt;Thanks for your help &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362017#M106950</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-08-10T19:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't my replace command working in this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362018#M106951</link>
      <description>&lt;P&gt;try a regex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=Status mode=sed "s/000//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362018#M106951</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-10T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't my replace command working in this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362019#M106952</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=test TransactionId="xxx-xxx-xxx"| eval Status=replace(Status,"^000(.+)","\1") | fields Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362019#M106952</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-10T19:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't my replace command working in this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362020#M106953</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;index=test  | eval TransactionId="xxx-xxx-xxx" |  replace *000* with ** in Status&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-isn-t-my-replace-command-working-in-this-search/m-p/362020#M106953</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-08-10T20:28:55Z</dc:date>
    </item>
  </channel>
</rss>

