<?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 columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234010#M69549</link>
    <description>&lt;P&gt;I've tried using rename and it doesn't work.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2015 08:06:53 GMT</pubDate>
    <dc:creator>deanamite91</dc:creator>
    <dc:date>2015-09-24T08:06:53Z</dc:date>
    <item>
      <title>Rename columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234008#M69547</link>
      <description>&lt;P&gt;I have the following search string&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="commercial_performance" "Efficiency Variance *" OR "Intervention Variance *" OR "Entitlement Variance *" | stats sum(Value) AS "Total" by Cat1 | addcoltotals labelfield=Cat1 label="Total (£)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On my graph the Efficiency Entitlement and Intervention Variance columns say 'Efficiency Variance (\xA3)' when I want them to say 'Efficiency Variance (£)'. &lt;/P&gt;

&lt;P&gt;I have tried renaming them but no luck.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 15:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234008#M69547</guid>
      <dc:creator>deanamite91</dc:creator>
      <dc:date>2015-09-23T15:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rename columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234009#M69548</link>
      <description>&lt;P&gt;Hi deanamite91,&lt;/P&gt;

&lt;P&gt;Just use the "rename" command to rename your column headers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename "Efficiency Variance (xA3)" AS "Efficiency Variance (£)" ...&amp;lt;and so on&amp;gt;...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234009#M69548</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-09-23T21:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rename columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234010#M69549</link>
      <description>&lt;P&gt;I've tried using rename and it doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234010#M69549</guid>
      <dc:creator>deanamite91</dc:creator>
      <dc:date>2015-09-24T08:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234011#M69550</link>
      <description>&lt;P&gt;The field is Cat1 and the values within it are Efficiency Variance (\xA3), Intervention Variance (\xA3) and Entitlement Variance (\xA3)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234011#M69550</guid>
      <dc:creator>deanamite91</dc:creator>
      <dc:date>2015-09-24T08:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rename columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234012#M69551</link>
      <description>&lt;P&gt;I suggest either the sed or the replace() commands.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/xA3/£/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  ... | eval Cat1 = replace(Cat1, "xA3", "£")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Sep 2015 22:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-columns/m-p/234012#M69551</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-09-24T22:08:38Z</dc:date>
    </item>
  </channel>
</rss>

