<?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 calculate the percentage of total bytes by app? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618283#M214880</link>
    <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;base_search&amp;gt;
| stats sum(bytes) AS bytes by app
| eventstats sum(bytes) AS total_bytes
| eval percentage=ROUND((bytes/total_bytes)*100, 2)." %"
| eval app_size_gb=ROUND(bytes/1073741824, 2)
| eval total_size_gb=ROUND(total_bytes/1073741824, 2)
| table app app_size_gb total_size_gb percentage&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 Oct 2022 20:18:50 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-25T20:18:50Z</dc:date>
    <item>
      <title>How to calculate the percentage of total bytes by app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618277#M214877</link>
      <description>&lt;P&gt;I am having a brain fart on trying to figure out how to find the total bytes per application and the the percent of each app by total bytes.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;bytes in GB&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;percentage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;SSL&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;300GB&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;23%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;DNS&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;100GB&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;13%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;etc&lt;/TD&gt;&lt;TD&gt;etc&lt;/TD&gt;&lt;TD&gt;etc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current search is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo 
| eventstats sum(bytes) as total_bytes 
| stats sum(bytes) as total first(total_bytes) as total_bytes by app 
| eval CompliancePct=round(total/total_bytes,2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 19:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618277#M214877</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-25T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the percentage of total bytes by app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618283#M214880</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;base_search&amp;gt;
| stats sum(bytes) AS bytes by app
| eventstats sum(bytes) AS total_bytes
| eval percentage=ROUND((bytes/total_bytes)*100, 2)." %"
| eval app_size_gb=ROUND(bytes/1073741824, 2)
| eval total_size_gb=ROUND(total_bytes/1073741824, 2)
| table app app_size_gb total_size_gb percentage&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618283#M214880</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-25T20:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the percentage of total bytes by app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618284#M214881</link>
      <description>&lt;P&gt;TYVM!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-percentage-of-total-bytes-by-app/m-p/618284#M214881</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-25T20:22:37Z</dc:date>
    </item>
  </channel>
</rss>

