<?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 split stats command results into rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-stats-command-results-into-rows/m-p/547237#M155151</link>
    <description>&lt;P&gt;Is this the sort of thing you are after?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=proxy 
| stats sum(bytes_in) as totalBytesIn, sum(bytes_out) as totalBytesOut by src_host category
| stats list(totalBytesIn) as totalBytesIn, list(totalBytesOut) as totalBytesOut, list(category) as category by src_host&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Apr 2021 16:51:49 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-04-08T16:51:49Z</dc:date>
    <item>
      <title>How to split stats command results into rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-stats-command-results-into-rows/m-p/547232#M155149</link>
      <description>&lt;P&gt;I have proxy logs, in which I am interested in 4 fields: the ip address of the user's computer, the category of the site he visits and the total amount of incoming and outgoing traffic for each category. Now I got such a table, but I needed it to be like in the second table on the screenshot. I just can't find a solution, I ask the SPL guru to help me)))&lt;BR /&gt;My query:&lt;BR /&gt;index=proxy&amp;nbsp;&lt;BR /&gt;| stats sum(bytes_in) as totalBytesIn, sum(bytes_out) as totalBytesOut, values(category) by src_host&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 16:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-stats-command-results-into-rows/m-p/547232#M155149</guid>
      <dc:creator>ipoluda</dc:creator>
      <dc:date>2021-04-08T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to split stats command results into rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-stats-command-results-into-rows/m-p/547237#M155151</link>
      <description>&lt;P&gt;Is this the sort of thing you are after?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=proxy 
| stats sum(bytes_in) as totalBytesIn, sum(bytes_out) as totalBytesOut by src_host category
| stats list(totalBytesIn) as totalBytesIn, list(totalBytesOut) as totalBytesOut, list(category) as category by src_host&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Apr 2021 16:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-stats-command-results-into-rows/m-p/547237#M155151</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-08T16:51:49Z</dc:date>
    </item>
  </channel>
</rss>

