<?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 Table Column Headings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80973#M20470</link>
    <description>&lt;P&gt;I am doing a search based on a pulldown values and displaying the results in a table. Here is the sample search&lt;BR /&gt;
stats count(eval(val1)), count(eval(val2)) BY $viewby$, itemType | table $viewby$, "Item Type"  &lt;/P&gt;

&lt;P&gt;(where viewby is selected value from dropdown. Now the applicable values for viewby in the drop down are "type1", "type2", "type3". In the column header, I want to display "Type 1" for "type1". How can i do that. It is currently displaying "type1" as column header. rename command is not working as well. Appreciate your input. &lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2012 21:10:05 GMT</pubDate>
    <dc:creator>Sriram</dc:creator>
    <dc:date>2012-02-28T21:10:05Z</dc:date>
    <item>
      <title>Table Column Headings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80973#M20470</link>
      <description>&lt;P&gt;I am doing a search based on a pulldown values and displaying the results in a table. Here is the sample search&lt;BR /&gt;
stats count(eval(val1)), count(eval(val2)) BY $viewby$, itemType | table $viewby$, "Item Type"  &lt;/P&gt;

&lt;P&gt;(where viewby is selected value from dropdown. Now the applicable values for viewby in the drop down are "type1", "type2", "type3". In the column header, I want to display "Type 1" for "type1". How can i do that. It is currently displaying "type1" as column header. rename command is not working as well. Appreciate your input. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 21:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80973#M20470</guid>
      <dc:creator>Sriram</dc:creator>
      <dc:date>2012-02-28T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Column Headings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80974#M20471</link>
      <description>&lt;P&gt;sriramvaidhyanathan,&lt;/P&gt;

&lt;P&gt;You could pipe to the rename command at the end of the search(Splunk docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/rename"&gt;here&lt;/A&gt;), for example:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;your_search&amp;gt;| rename type1 AS "Type 1",type2 AS "Type 2"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;As can be seen above, you can do this multiple times with one "rename" command... simply seperate with a comma (i.e. ",")&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;

&lt;P&gt;P.s. if this answers your question, please mark the answer as accepted/upvote the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 21:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80974#M20471</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-02-28T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Column Headings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80975#M20472</link>
      <description>&lt;P&gt;I was doing rename prior to the table. Something like this. stats count(eval(val1)), count(eval(val2)) BY $viewby$, itemType | rename $viewby$ AS ....| table ..... Changed rename to pipe at the end. Works fine now. Thanks for the help !&lt;/P&gt;</description>
      <pubDate>Wed, 29 Feb 2012 18:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/80975#M20472</guid>
      <dc:creator>Sriram</dc:creator>
      <dc:date>2012-02-29T18:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Column Headings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/689140#M234863</link>
      <description>&lt;P&gt;I'm sure this has been asked to death but can I do this as an inline process during a table transforming command?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 20:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Column-Headings/m-p/689140#M234863</guid>
      <dc:creator>andrewpense825</dc:creator>
      <dc:date>2024-05-30T20:00:45Z</dc:date>
    </item>
  </channel>
</rss>

