<?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 Summarize (stats) Output. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132354#M36097</link>
    <description>&lt;P&gt;Something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt; | stats latest(bps_out) AS CurrentBPS BY Gateway,Hub,Interface,MaxSpeed | stats sum(MaxSpeed) sum(CurrentBPS) by Hub
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Apr 2014 15:35:41 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-04-15T15:35:41Z</dc:date>
    <item>
      <title>How to Summarize (stats) Output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132353#M36096</link>
      <description>&lt;P&gt;Right now I have a search which outputs the following:&lt;/P&gt;

&lt;P&gt;&lt;SEARCH&gt; | stats latest(bps_out) AS CurrentBPS BY Gateway,Hub,Interface,MaxSpeed&lt;/SEARCH&gt;&lt;/P&gt;

&lt;P&gt;Gateway         Hub     Interface       MaxSpeed        CurrentBPS&lt;/P&gt;

&lt;P&gt;router1.boston  Boston  so-0/0/0.0      10000000000     3843026418&lt;/P&gt;

&lt;P&gt;router2.boston  Boston  so-0/0/1.0      10000000000     3813472541&lt;/P&gt;

&lt;P&gt;What I'm trying to do is sum up this data by Hub so that it looks like:&lt;/P&gt;

&lt;P&gt;Hub     MaxSpeed        CurrentBPS&lt;/P&gt;

&lt;P&gt;Boston  20000000000     7656498959&lt;/P&gt;

&lt;P&gt;The end result being a culmination of data per Hub. I tried using bucket and transaction, but just couldn't get it to work right. Maybe eval will work, but I wasn't skilled enough to get that working either. Any suggestions are greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132353#M36096</guid>
      <dc:creator>albyva</dc:creator>
      <dc:date>2014-04-15T15:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Summarize (stats) Output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132354#M36097</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt; | stats latest(bps_out) AS CurrentBPS BY Gateway,Hub,Interface,MaxSpeed | stats sum(MaxSpeed) sum(CurrentBPS) by Hub
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132354#M36097</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-15T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Summarize (stats) Output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132355#M36098</link>
      <description>&lt;P&gt;It's always the simple things that get you.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Thanks, that did it.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Summarize-stats-Output/m-p/132355#M36098</guid>
      <dc:creator>albyva</dc:creator>
      <dc:date>2014-04-15T15:48:20Z</dc:date>
    </item>
  </channel>
</rss>

