<?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 a Column? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214346#M62848</link>
    <description>&lt;P&gt;Thank you!  This works.  For some reason "eval" works when "fieldformat" doesn't.  Doesn't make any logical sense to me but thank you very much for providing a working solution!&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2015 13:22:41 GMT</pubDate>
    <dc:creator>JohnWright8</dc:creator>
    <dc:date>2015-09-04T13:22:41Z</dc:date>
    <item>
      <title>Rename a Column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214344#M62846</link>
      <description>&lt;P&gt;I'm processing some IIS log files with a search:&lt;BR /&gt;
&lt;STRONG&gt;stats count max(time_taken) avg(time_taken) as avgTT by cs_uri_stem | fieldformat avgTT=round(avgTT/1000,2) |rename avgTT as "Avg Response Time"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;But the result displays a column for both "Avg Response Time" (which seems to lack the rounding I just did) and ALSO displays an (empty) column named avgTT.&lt;/P&gt;

&lt;P&gt;How do I do a search and then simply change the text of the column title?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214344#M62846</guid>
      <dc:creator>JohnWright8</dc:creator>
      <dc:date>2020-09-29T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a Column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214345#M62847</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | stats count max(time_taken)  avg(time_taken) as avgTT by cs_uri_stem | eval avgTT=round(avgTT/1000,2) |rename avgTT as "Avg Response Time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Sep 2015 13:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214345#M62847</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-04T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a Column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214346#M62848</link>
      <description>&lt;P&gt;Thank you!  This works.  For some reason "eval" works when "fieldformat" doesn't.  Doesn't make any logical sense to me but thank you very much for providing a working solution!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 13:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-a-Column/m-p/214346#M62848</guid>
      <dc:creator>JohnWright8</dc:creator>
      <dc:date>2015-09-04T13:22:41Z</dc:date>
    </item>
  </channel>
</rss>

