<?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 rename column and row labels after using transpose? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/549190#M155803</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm in a similar situation now and this works great but I was wondering if there's a way to individually rename each column?&amp;nbsp; The 'not working' way would look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rename row1 AS "Column 1", row2 AS "Scan Logs", row3 AS "etc."&lt;/LI-CODE&gt;&lt;P&gt;Help on this would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 20:49:48 GMT</pubDate>
    <dc:creator>astackpole</dc:creator>
    <dc:date>2021-04-23T20:49:48Z</dc:date>
    <item>
      <title>How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261712#M78568</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I am having no luck renaming  "column" and "row1, row2,..." successfully to "fields" and "event 1, event 2, event3, ...."&lt;BR /&gt;
I can &lt;CODE&gt;| rename column as fields&lt;/CODE&gt;, but no luck with the rows.&lt;/P&gt;

&lt;P&gt;Please advise how to rename the column to fields and rows to events, row1&amp;gt;event1.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 22:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261712#M78568</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-12-02T22:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261713#M78569</link>
      <description>&lt;P&gt;For row values, you have to use &lt;CODE&gt;replace&lt;/CODE&gt; not &lt;CODE&gt;rename&lt;/CODE&gt;. Try this &lt;CODE&gt;replace "column 1" WITH "somevalue" IN column&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 22:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261713#M78569</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-02T22:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261714#M78570</link>
      <description>&lt;P&gt;Thank you for the reply.   I may have a miscommunication.   I actually just want to rename the column and row labels, not necessarily use Splunk fields.&lt;/P&gt;

&lt;P&gt;....| transpose | rename column as Details, "row 1" as 1&lt;/P&gt;

&lt;P&gt;so I would like to auto-rename the row 1, row 2, row 3, to just be 1, 2, 3 (dropping the word row)&lt;BR /&gt;
Is that possible?  &lt;/P&gt;

&lt;P&gt;I guess the answer is YES, just needed&lt;/P&gt;

&lt;P&gt;| transpose | rename column as Details, row* as *&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261714#M78570</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-12-06T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261715#M78571</link>
      <description>&lt;P&gt;You mean like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transpose | rename column AS Details "row "* AS *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 18:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261715#M78571</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-06T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261716#M78572</link>
      <description>&lt;P&gt;The right way to do this is to use the header_field option for the transpose command&lt;/P&gt;

&lt;P&gt;| transpose header_field=Key&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/261716#M78572</guid>
      <dc:creator>jbjerke_splunk</dc:creator>
      <dc:date>2019-03-06T14:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/549190#M155803</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm in a similar situation now and this works great but I was wondering if there's a way to individually rename each column?&amp;nbsp; The 'not working' way would look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rename row1 AS "Column 1", row2 AS "Scan Logs", row3 AS "etc."&lt;/LI-CODE&gt;&lt;P&gt;Help on this would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 20:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/549190#M155803</guid>
      <dc:creator>astackpole</dc:creator>
      <dc:date>2021-04-23T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/602079#M209563</link>
      <description>&lt;P&gt;You need to use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;... | rename "row 1" as "This is Column 1",&amp;nbsp; "row 2" as&amp;nbsp; "This is Column 2", etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/602079#M209563</guid>
      <dc:creator>nmsaraujo</dc:creator>
      <dc:date>2022-06-16T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename column and row labels after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/618624#M215017</link>
      <description>&lt;P&gt;One option is to use the foreach command&lt;/P&gt;&lt;PRE&gt;...&amp;nbsp;| foreach "row "* [ rename "row "&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt; AS ROW&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt; ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 18:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-column-and-row-labels-after-using-transpose/m-p/618624#M215017</guid>
      <dc:creator>kmarion1993</dc:creator>
      <dc:date>2022-10-27T18:08:40Z</dc:date>
    </item>
  </channel>
</rss>

