<?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 Search for sum of application bytes uploaded in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sum-of-application-bytes-uploaded/m-p/547070#M155087</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to get a total number of bytes/MB/GB&amp;nbsp; uploaded per application in Splunk.&lt;/P&gt;&lt;P&gt;Can't seem to find the correct search, I did find file_size.&lt;/P&gt;&lt;P&gt;Here is the search that I started out with;&lt;/P&gt;&lt;P&gt;sourcetype=x index=x_method="Explicit Proxy"&lt;BR /&gt;| table app,category,activity, user&lt;BR /&gt;| dedup user&lt;BR /&gt;| stats count by app,&lt;/P&gt;&lt;P&gt;Gives me the number of users per app, need to number of bytes uploaded per app.&lt;/P&gt;&lt;P&gt;Then this search, not sure if the totals are correct or not.&lt;/P&gt;&lt;P&gt;sourcetype=x index=y&amp;nbsp; access_method="Explicit Proxy" activity=upload&lt;BR /&gt;| stats sum(file_size) by app&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 17:08:46 GMT</pubDate>
    <dc:creator>johefu</dc:creator>
    <dc:date>2021-04-07T17:08:46Z</dc:date>
    <item>
      <title>Search for sum of application bytes uploaded</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sum-of-application-bytes-uploaded/m-p/547070#M155087</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to get a total number of bytes/MB/GB&amp;nbsp; uploaded per application in Splunk.&lt;/P&gt;&lt;P&gt;Can't seem to find the correct search, I did find file_size.&lt;/P&gt;&lt;P&gt;Here is the search that I started out with;&lt;/P&gt;&lt;P&gt;sourcetype=x index=x_method="Explicit Proxy"&lt;BR /&gt;| table app,category,activity, user&lt;BR /&gt;| dedup user&lt;BR /&gt;| stats count by app,&lt;/P&gt;&lt;P&gt;Gives me the number of users per app, need to number of bytes uploaded per app.&lt;/P&gt;&lt;P&gt;Then this search, not sure if the totals are correct or not.&lt;/P&gt;&lt;P&gt;sourcetype=x index=y&amp;nbsp; access_method="Explicit Proxy" activity=upload&lt;BR /&gt;| stats sum(file_size) by app&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 17:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sum-of-application-bytes-uploaded/m-p/547070#M155087</guid>
      <dc:creator>johefu</dc:creator>
      <dc:date>2021-04-07T17:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sum of application bytes uploaded</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sum-of-application-bytes-uploaded/m-p/547081#M155094</link>
      <description>&lt;P&gt;There';s no need to dedup before counting.&amp;nbsp; The distinct_count function will give the number of unique values in a given field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=x index=x method="Explicit Proxy"
| fields app,category,activity, user, bytes
| stats dc(user) as users, sum(bytes) as totalBytes by app&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure anyone here can say if the results of the second query are correct or not because we don't have access to your data.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sum-of-application-bytes-uploaded/m-p/547081#M155094</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-07T18:21:44Z</dc:date>
    </item>
  </channel>
</rss>

