<?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 get Field values as column names/headers in the table output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Field-values-as-column-names-headers-in-the-table/m-p/558151#M158527</link>
    <description>&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=NETYPE
| fields - column&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 02 Jul 2021 12:03:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-07-02T12:03:56Z</dc:date>
    <item>
      <title>How to get Field values as column names/headers in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Field-values-as-column-names-headers-in-the-table/m-p/558148#M158526</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have a simple requirement but unable to get it. I am using a query&lt;/P&gt;&lt;P&gt;index=tms sourcetype=kafka type=ssh| stats count by NETYPE&lt;/P&gt;&lt;P&gt;For above query I am getting output as below&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;NETYPE&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;CISCO&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;JUNIPER&lt;/TD&gt;&lt;TD height="25px"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I want output as&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;CISCO&lt;/TD&gt;&lt;TD width="50%"&gt;JUNIPER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help how can I get above o/p table&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 11:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Field-values-as-column-names-headers-in-the-table/m-p/558148#M158526</guid>
      <dc:creator>poddura</dc:creator>
      <dc:date>2021-07-02T11:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Field values as column names/headers in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Field-values-as-column-names-headers-in-the-table/m-p/558151#M158527</link>
      <description>&lt;LI-CODE lang="markup"&gt;| transpose 0 header_field=NETYPE
| fields - column&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Jul 2021 12:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Field-values-as-column-names-headers-in-the-table/m-p/558151#M158527</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-02T12:03:56Z</dc:date>
    </item>
  </channel>
</rss>

