<?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: Sum rows by column in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619262#M9116</link>
    <description>&lt;P&gt;If you just want to sum them, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;messages_number container_name="pol-sms-amh-throttler" | stats sum(messages_number) as TotalConsumption by Consumer limit=0&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 02 Nov 2022 09:52:23 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-11-02T09:52:23Z</dc:date>
    <item>
      <title>How to search sum rows by column?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619250#M9111</link>
      <description>&lt;P&gt;Having this initial query I obtain a list of results order by Consumer, and pod&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;messages_number container_name="pol-sms-amh-throttler" | stats avg(messages_number) as consumer_node by Consumer, pod&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk_1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22279i733C23C3636EE4F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk_1.PNG" alt="splunk_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I append a second stats where I want to sum all the values of pods by Consumer&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;messages_number container_name="pol-sms-amh-throttler" | stats avg(messages_number) as consumer_node by Consumer, pod | stats sum(consumer_node) as AvgConsumption by Consumer limit=0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk_2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22280i5F30061BEB38F85E/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk_2.PNG" alt="splunk_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is this query correct and accurate about what I'm want to achieve?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I don't know how can I see the &lt;STRONG&gt;AvgConsumptions&lt;/STRONG&gt;&amp;nbsp; in a visualization&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619250#M9111</guid>
      <dc:creator>politrons</dc:creator>
      <dc:date>2022-11-02T12:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rows by column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619256#M9113</link>
      <description>&lt;P&gt;What you have will give you a number although I am not sure what significance it has - have you considered just doing it this way?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;messages_number container_name="pol-sms-amh-throttler" | stats avg(messages_number) as AvgConsumption by Consumer limit=0&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619256#M9113</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-02T09:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rows by column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619260#M9115</link>
      <description>&lt;P&gt;&amp;nbsp;you're not doing the same thing.&lt;/P&gt;&lt;P&gt;If we have 3 pods that are producing &lt;STRONG&gt;messages_number&lt;/STRONG&gt; 3,4,2. What I want to know is that all of them are producing 9.&lt;/P&gt;&lt;P&gt;But with your query it will produce just 4&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619260#M9115</guid>
      <dc:creator>politrons</dc:creator>
      <dc:date>2022-11-02T09:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rows by column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619262#M9116</link>
      <description>&lt;P&gt;If you just want to sum them, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;messages_number container_name="pol-sms-amh-throttler" | stats sum(messages_number) as TotalConsumption by Consumer limit=0&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-search-sum-rows-by-column/m-p/619262#M9116</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-02T09:52:23Z</dc:date>
    </item>
  </channel>
</rss>

