<?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: help on rename which doesnt works in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520075#M146446</link>
    <description>&lt;LI-CODE lang="markup"&gt;| inputlookup fo_all  
| fields SITE # you are limiting fields to one field SITE, from here on you will have only one field.
| dedup SITE 
| rename "ABCD" as "AB" # you are trying to rename field ABCD to AB which you don't have at this moment. 
| table SITE&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 17 Sep 2020 08:24:51 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-17T08:24:51Z</dc:date>
    <item>
      <title>help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520068#M146441</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I use the search below but I don't know why the rename command doesn't works&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup fo_all 
| fields SITE 
| dedup SITE 
| rename "ABCD" as "AB"
| table SITE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520068#M146441</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-17T08:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520071#M146443</link>
      <description>&lt;P&gt;Rename is for field names. You have reduced your fields to just SITE. There is no field ABCD for you to rename as AB. What is it you are trying to do?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520071#M146443</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520075#M146446</link>
      <description>&lt;LI-CODE lang="markup"&gt;| inputlookup fo_all  
| fields SITE # you are limiting fields to one field SITE, from here on you will have only one field.
| dedup SITE 
| rename "ABCD" as "AB" # you are trying to rename field ABCD to AB which you don't have at this moment. 
| table SITE&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520075#M146446</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-17T08:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520077#M146447</link>
      <description>&lt;P&gt;Hi I need to rename the items of the field SITE&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520077#M146447</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-17T08:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520078#M146448</link>
      <description>&lt;P&gt;okay. I believe there is an Item ABCD in your SITE field and you would want to rename it to AB. if is that what you are looking for then use below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup fo_all 
| stats count by SITE
| fields SITE 
| eval SITE=if(SITE=="ABCD","AB",SITE)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520078#M146448</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-17T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520080#M146449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407"&gt;@thambisetty&lt;/a&gt;&amp;nbsp; has suggested works fine for ABCD "renamed" to AB but I suspect this is just example data and what you want is something more generic, perhaps substr() or replace() might be more useful, you may want to consider using case() and match() to do different "renames"&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520080#M146449</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T08:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: help on rename which doesnt works</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520083#M146450</link>
      <description>&lt;P&gt;thanks it works&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rename-which-doesnt-works/m-p/520083#M146450</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-17T08:49:37Z</dc:date>
    </item>
  </channel>
</rss>

