<?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 most used application in bytes when I have multiple applications in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271094#M190127</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....  | eval mb=(bytes/1024)/1024 | rename user AS "User"  | chart sum(mb) AS "Data Used in MB" over User by Application | addtotals | sort -Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Jul 2016 00:18:13 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-07-26T00:18:13Z</dc:date>
    <item>
      <title>Sum of most used application in bytes when I have multiple applications</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271093#M190126</link>
      <description>&lt;P&gt;Hi everyone, I'm pretty new to Splunk (just started a little more than 2 weeks ago). &lt;/P&gt;

&lt;P&gt;Currently I'm making a panel that would display columns with the following: User - Most Data Consumed Application - Most Data Usage from Application in MB - Data Used in MB. So for example, I have the following - John Smith - youtube.com - 123523 MB - 548432 MB &lt;/P&gt;

&lt;P&gt;I'm having trouble figuring out how to get Splunk to compute the most data consumed application and display it with the application in my columns. I've only been able to create the 1st and 4th column, by using stats. &lt;/P&gt;

&lt;P&gt;My current code is:&lt;BR /&gt;
... | eval mb=(bytes/1024)/1024 | rename user AS "User" | stats sum(mb) AS "Data Used in MB" by "User" | sort -num("Data Used in MB")&lt;/P&gt;

&lt;P&gt;I was thinking of adding another calculation to the stats command, but I can't think of a way to do this off the top of my head.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 21:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271093#M190126</guid>
      <dc:creator>ddong</dc:creator>
      <dc:date>2016-07-25T21:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of most used application in bytes when I have multiple applications</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271094#M190127</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....  | eval mb=(bytes/1024)/1024 | rename user AS "User"  | chart sum(mb) AS "Data Used in MB" over User by Application | addtotals | sort -Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2016 00:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271094#M190127</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-26T00:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of most used application in bytes when I have multiple applications</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271095#M190128</link>
      <description>&lt;P&gt;This works quite nice, but instead of just displaying the most used one, it displays all the applications I have in a table. Furthermore, it's not really what I'm looking for table structure wise:&lt;BR /&gt;
User - application 1 - application 2 - application 3 - Total&lt;BR /&gt;
jsmith - 0.12315MB - 0.16684MB - 4.12562MB - 4.41561MB&lt;/P&gt;

&lt;P&gt;I want to have the table structured like this:&lt;BR /&gt;
User - Data in MB - Application - Total&lt;BR /&gt;
jsmith - 4.12562MB - application 3 - 4.41561&lt;/P&gt;

&lt;P&gt;Thank you for the attempt though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Edit: made a mistake earlier in my search query and results became different after I took another look. So the results above are what I'm currently seeing.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-most-used-application-in-bytes-when-I-have-multiple/m-p/271095#M190128</guid>
      <dc:creator>ddong</dc:creator>
      <dc:date>2016-07-28T15:06:53Z</dc:date>
    </item>
  </channel>
</rss>

