<?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 of Total count in another column in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512579#M2962</link>
    <description>&lt;P&gt;Try getting the total count from dest_port.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(dest_port) as dest_port count(bytes) as count by app
| eval total_count = mvcount(dest_port)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 14:33:17 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-08-05T14:33:17Z</dc:date>
    <item>
      <title>Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512556#M2957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help on my query, I want to achieve this kind of table shown below&lt;/P&gt;&lt;P&gt;What I want is to get the total_count value for each app by adding the values under count and get sum of it under total_count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="306"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97"&gt;app&lt;/TD&gt;&lt;TD width="67"&gt;dest_port&lt;/TD&gt;&lt;TD width="64"&gt;count&lt;/TD&gt;&lt;TD width="78"&gt;total_count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ssl&lt;/TD&gt;&lt;TD width="67"&gt;10001&lt;BR /&gt;10020&lt;BR /&gt;13000&lt;BR /&gt;13006&lt;BR /&gt;22790&lt;BR /&gt;26107&lt;BR /&gt;443&lt;BR /&gt;44345&lt;BR /&gt;4&lt;/TD&gt;&lt;TD width="64"&gt;21&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;2&lt;BR /&gt;8&lt;BR /&gt;19&lt;BR /&gt;22&lt;BR /&gt;55&lt;BR /&gt;323&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;web-browsing&lt;/TD&gt;&lt;TD width="67"&gt;&lt;P&gt;1000&lt;BR /&gt;21&lt;BR /&gt;443&lt;BR /&gt;5000&lt;BR /&gt;7788&lt;BR /&gt;80&lt;BR /&gt;8003&lt;BR /&gt;8080&lt;/P&gt;&lt;/TD&gt;&lt;TD width="64"&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;7&lt;BR /&gt;1000&lt;BR /&gt;200&lt;BR /&gt;12&lt;BR /&gt;21&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512556#M2957</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-05T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512564#M2959</link>
      <description>&lt;P&gt;An eval should do it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(dest_port) as dest_port count(bytes) as count by app
| eval total_count = mvcount(count)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512564#M2959</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-05T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512566#M2960</link>
      <description>&lt;P&gt;it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512566#M2960</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-05T14:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512572#M2961</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems that the count for each dest_port where gone, then Im getting the total_count with a value of 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="goringop_0-1596637374491.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10060i312523C6B51E6D89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="goringop_0-1596637374491.png" alt="goringop_0-1596637374491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512572#M2961</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-05T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512579#M2962</link>
      <description>&lt;P&gt;Try getting the total count from dest_port.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(dest_port) as dest_port count(bytes) as count by app
| eval total_count = mvcount(dest_port)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512579#M2962</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-05T14:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512585#M2964</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;thanks for the reply but still not getting the correct value. please see below screenshot. Under the count column, I want to see all the value for each port then Under the total_count column I want to see the sum of counts for that specific app&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="goringop_0-1596638220253.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10065i117F6683A3C131E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="goringop_0-1596638220253.png" alt="goringop_0-1596638220253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512585#M2964</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-05T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512586#M2965</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a table something like this:&lt;/P&gt;&lt;TABLE width="306"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97"&gt;app&lt;/TD&gt;&lt;TD width="67"&gt;dest_port&lt;/TD&gt;&lt;TD width="64"&gt;count&lt;/TD&gt;&lt;TD width="78"&gt;total_count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ssl&lt;/TD&gt;&lt;TD width="67"&gt;10001&lt;BR /&gt;10020&lt;BR /&gt;13000&lt;BR /&gt;13006&lt;BR /&gt;22790&lt;BR /&gt;26107&lt;BR /&gt;443&lt;BR /&gt;44345&lt;BR /&gt;4&lt;/TD&gt;&lt;TD width="64"&gt;21&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;2&lt;BR /&gt;8&lt;BR /&gt;19&lt;BR /&gt;22&lt;BR /&gt;55&lt;BR /&gt;323&lt;/TD&gt;&lt;TD&gt;455&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;web-browsing&lt;/TD&gt;&lt;TD width="67"&gt;&lt;P&gt;1000&lt;BR /&gt;21&lt;BR /&gt;443&lt;BR /&gt;5000&lt;BR /&gt;7788&lt;BR /&gt;80&lt;BR /&gt;8003&lt;BR /&gt;8080&lt;/P&gt;&lt;/TD&gt;&lt;TD width="64"&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;7&lt;BR /&gt;1000&lt;BR /&gt;200&lt;BR /&gt;12&lt;BR /&gt;21&lt;/TD&gt;&lt;TD&gt;1249&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/512586#M2965</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-05T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/515312#M3084</link>
      <description>&lt;P&gt;Sorry.&amp;nbsp; I misunderstood the request and read "total count" as a literal count.&lt;/P&gt;&lt;P&gt;I wrote an app that may help.&amp;nbsp; Check out the mvstats app at&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/5198/" target="_blank"&gt;https://splunkbase.splunk.com/app/5198/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use it like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | mvstats sum count as total_count&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/515312#M3084</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-20T21:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Total count in another column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/516003#M3118</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;thank you for this, I will install the app and get back to you&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Sum-of-Total-count-in-another-column/m-p/516003#M3118</guid>
      <dc:creator>goringop</dc:creator>
      <dc:date>2020-08-25T11:51:05Z</dc:date>
    </item>
  </channel>
</rss>

