<?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 How to change host as row and time as column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669066#M229491</link>
    <description>&lt;P&gt;Hi there, I have this query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=_internal source="*license_usage.log"
| eval bytes=b
| eval GB = round(bytes/1024/1024/1024,3)
| timechart span=1d sum(GB) by h&lt;/LI-CODE&gt;
&lt;P&gt;This query shows results like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;host1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;....&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-11-10&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-11-11&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;...&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want results like this:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;Host&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;2023-11-10&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;....&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;host1&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;host2&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;...&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How I can do this?&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2023 09:10:30 GMT</pubDate>
    <dc:creator>Zodi_6</dc:creator>
    <dc:date>2023-11-18T09:10:30Z</dc:date>
    <item>
      <title>How to change host as row and time as column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669066#M229491</link>
      <description>&lt;P&gt;Hi there, I have this query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=_internal source="*license_usage.log"
| eval bytes=b
| eval GB = round(bytes/1024/1024/1024,3)
| timechart span=1d sum(GB) by h&lt;/LI-CODE&gt;
&lt;P&gt;This query shows results like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;host1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;....&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-11-10&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-11-11&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;...&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want results like this:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;Host&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;2023-11-10&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;....&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;host1&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;&lt;SPAN&gt;host2&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="98.75px" height="25px"&gt;...&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="98.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How I can do this?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 09:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669066#M229491</guid>
      <dc:creator>Zodi_6</dc:creator>
      <dc:date>2023-11-18T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host as row and time as column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669069#M229492</link>
      <description>&lt;P&gt;Use chart.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source="*license_usage.log"
| eval bytes=b
| eval GB = round(bytes/1024/1024/1024,3)
| bucket _time span=1d
| eval _time = strftime(_time, "%F")
| chart sum(GB) over h by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Nov 2023 03:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669069#M229492</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-11-18T03:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change host as row and time as column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669074#M229494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262587"&gt;@Zodi_6&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see the transpose command at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.2/SearchReference/Transpose" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.2/SearchReference/Transpose&lt;/A&gt;&amp;nbsp;and, please, try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source="*license_usage.log"
| eval bytes=b
| eval GB = round(bytes/1024/1024/1024,3)
| timechart span=1d sum(GB) by h
| transpose 0 column_name=h header_field_time &lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 06:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-host-as-row-and-time-as-column/m-p/669074#M229494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-18T06:52:57Z</dc:date>
    </item>
  </channel>
</rss>

