<?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: rename &amp; replace in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437607#M124585</link>
    <description>&lt;P&gt;The &lt;CODE&gt;rename&lt;/CODE&gt; command changes the &lt;CODE&gt;field name&lt;/CODE&gt; whereas &lt;CODE&gt;replace&lt;/CODE&gt; changes the &lt;CODE&gt;field value&lt;/CODE&gt; so you have that part right.  You just need some wildcards:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |rename vCenter as Vblock |replace "*vbc1*" with "*Vblock1*", "*vbc2*" with "*Vblock2*" in Vblock
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 15 Jul 2018 16:55:26 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2018-07-15T16:55:26Z</dc:date>
    <item>
      <title>rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437602#M124580</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm new with SPL and Splunk, I have a folder that has 3 files, in the first file I have a column called Vblock, in the other two is called vCenter. I want to rename vCenter by Vblock in both files and then I want to replace the Vblock values as follows: when I have Vbc1 I replace it with Vblock1, when I have Vbc2 I replace it with Vblock 2, as I can do that?&lt;BR /&gt;
I made this request &lt;STRONG&gt;|rename vCenter as Vblock |replace "vbc1" with "Vblock1", "vbc2" with "Vblock2"  in Vblock&lt;/STRONG&gt;  but they do not replace the values of Vblock or I may not know how to check.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 11:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437602#M124580</guid>
      <dc:creator>Lynda_Sadi1275</dc:creator>
      <dc:date>2018-07-13T11:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437603#M124581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can do something like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval newfield=colesce(Vblock,vCenter)
| eval newfield=Case(newfield="Vbc1","vblock1",newfield="vbc2","vblock2")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jul 2018 12:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437603#M124581</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2018-07-13T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437604#M124582</link>
      <description>&lt;P&gt;What does the coalesce command mean in this Splunk search?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 13:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437604#M124582</guid>
      <dc:creator>Lynda_Sadi1275</dc:creator>
      <dc:date>2018-07-13T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437605#M124583</link>
      <description>&lt;P&gt;See these:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/476830/what-does-the-coalesce-command-mean-in-this-splunk.html"&gt;https://answers.splunk.com/answers/476830/what-does-the-coalesce-command-mean-in-this-splunk.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/CommonEvalFunctions#Supported_functions_and_syntax"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/CommonEvalFunctions#Supported_functions_and_syntax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 14:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437605#M124583</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-13T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437606#M124584</link>
      <description>&lt;P&gt;what is the role of the order coalesce&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 16:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437606#M124584</guid>
      <dc:creator>Lynda_Sadi1275</dc:creator>
      <dc:date>2018-07-13T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: rename &amp; replace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437607#M124585</link>
      <description>&lt;P&gt;The &lt;CODE&gt;rename&lt;/CODE&gt; command changes the &lt;CODE&gt;field name&lt;/CODE&gt; whereas &lt;CODE&gt;replace&lt;/CODE&gt; changes the &lt;CODE&gt;field value&lt;/CODE&gt; so you have that part right.  You just need some wildcards:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |rename vCenter as Vblock |replace "*vbc1*" with "*Vblock1*", "*vbc2*" with "*Vblock2*" in Vblock
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Jul 2018 16:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-replace/m-p/437607#M124585</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-15T16:55:26Z</dc:date>
    </item>
  </channel>
</rss>

