<?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 data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223563#M65827</link>
    <description>&lt;P&gt;If you're looking to rename/update field values with CPU* format (not only CPU001 but CPU002 as well, give this try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your current search | eval Jenis=replace(Jenis,"(00|_)","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Jun 2016 18:10:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-06-21T18:10:06Z</dc:date>
    <item>
      <title>rename data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223560#M65824</link>
      <description>&lt;P&gt;I want to rename CPU001 to CPU1, CPU_ALL to CPUALL, is it possible?&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1499i1C10B4048675449C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223560#M65824</guid>
      <dc:creator>haziqwebs</dc:creator>
      <dc:date>2016-06-21T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: rename data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223561#M65825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Yes, just put this at the end:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Jenis = case (Jenis="CPU001","CPU1",Jenis="CPU_ALL","CPUALL")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope i help you&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223561#M65825</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2016-06-21T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: rename data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223562#M65826</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | replace "CPU001" WITH "CPU1" "CPU_ALL" WITH "CPUALL" IN Jenis
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223562#M65826</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-21T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: rename data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223563#M65827</link>
      <description>&lt;P&gt;If you're looking to rename/update field values with CPU* format (not only CPU001 but CPU002 as well, give this try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your current search | eval Jenis=replace(Jenis,"(00|_)","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2016 18:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rename-data/m-p/223563#M65827</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-06-21T18:10:06Z</dc:date>
    </item>
  </channel>
</rss>

