<?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: How to change table header after using transpose command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177663#M51086</link>
    <description>&lt;P&gt;this should be the correct answer&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 04:24:37 GMT</pubDate>
    <dc:creator>morethanyell</dc:creator>
    <dc:date>2018-11-08T04:24:37Z</dc:date>
    <item>
      <title>How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177656#M51079</link>
      <description>&lt;P&gt;Hi I am using transpose command (transpose 23), to turn 23 rows to column but I am getting table header as row 1, row 2, row 3 ... row 23, &lt;BR /&gt;
How can I remove this?&lt;BR /&gt;
Is it possible to make "Name" as table header instead of row 1, row 2 etc..&lt;/P&gt;

&lt;P&gt;Search :&lt;/P&gt;

&lt;P&gt;... | chart count(Eval(state="Ok")) as Success, count(Eval(state="NotOk")) as Fail by Name | eval Colour=if(Fail&amp;gt;0,"#FF0000", "#00FF00") | transpose 23&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177656#M51079</guid>
      <dc:creator>marellasunil</dc:creator>
      <dc:date>2014-08-11T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177657#M51080</link>
      <description>&lt;P&gt;After transpose you can rename the fields&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search terms.. | transpose 23 | rename "row 1" as Row1, "row 2" as Row2,.........
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying for a better approach. I will post it as soon as i find one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177657#M51080</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-11T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177658#M51081</link>
      <description>&lt;P&gt;Is it possible to make "Name" as table header instead of row 1, row 2 etc..&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 11:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177658#M51081</guid>
      <dc:creator>marellasunil</dc:creator>
      <dc:date>2014-08-11T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177659#M51082</link>
      <description>&lt;P&gt;You don't really need to use &lt;CODE&gt;transpose&lt;/CODE&gt;. Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart ... | eval ... | untable key name value | xyseries name key value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note how &lt;CODE&gt;key&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt; trade places, effectively transposing the table without the nasty sideeffect of &lt;CODE&gt;transpose&lt;/CODE&gt; messing up the column names.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 13:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177659#M51082</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-11T13:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177660#M51083</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/345937/how-to-transpose-a-table-to-make-the-values-in-col.html?sort=newest"&gt;https://answers.splunk.com/answers/345937/how-to-transpose-a-table-to-make-the-values-in-col.html?sort=newest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;use transpose header_field=&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 06:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177660#M51083</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2016-10-13T06:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177661#M51084</link>
      <description>&lt;P&gt;A much simpler ways is to just &lt;STRONG&gt;header_field=Name&lt;/STRONG&gt;  after your transpose  command .&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 08:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177661#M51084</guid>
      <dc:creator>AdixitSplunk</dc:creator>
      <dc:date>2017-01-05T08:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177662#M51085</link>
      <description>&lt;P&gt;Try this one:&lt;BR /&gt;
    index="web_app" | top app_user | transpose column_name="First Column Name" header_field=app_user include_empty=false&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177662#M51085</guid>
      <dc:creator>moisesroth</dc:creator>
      <dc:date>2020-09-29T14:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table header after using transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177663#M51086</link>
      <description>&lt;P&gt;this should be the correct answer&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 04:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-table-header-after-using-transpose-command/m-p/177663#M51086</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2018-11-08T04:24:37Z</dc:date>
    </item>
  </channel>
</rss>

