<?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: Number of uploads for the top users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635681#M220854</link>
    <description>&lt;P&gt;Thank you so much. It now can show the column "Number_File_Uploads" at the end of the table.&lt;/P&gt;&lt;P&gt;In addition to that, however, I see the "Access date and time" has now disappeared and the "username" is no more the same as the first result.&lt;/P&gt;&lt;P&gt;How can I keep the&amp;nbsp;"Access date and time" values being shown, basically all the columns's values that are shown at the first result should be kept the same, just the&amp;nbsp;"Number_File_Uploads" being added with its count values.&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 10:21:33 GMT</pubDate>
    <dc:creator>TrangCIC81</dc:creator>
    <dc:date>2023-03-23T10:21:33Z</dc:date>
    <item>
      <title>How to create a table for number of uploads for the top users?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635650#M220842</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have been able to create a table that lists the top users that have been uploading files the most to cloud storage services for a certain time range as set in shared time picker with the following queries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(time range:last month)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S") 
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| table end_time,user,src,src_remarks01,url,bytes_in
| rename "end_time" as "Access date and time", "user" as "Username", "src" as "IP address", "src_remarks01" as "Asset information", "url" as "FQDN", "bytes_in" as "BytesIn(GB)"
| sort - BytesIn(GB)
| head 10&lt;/LI-CODE&gt;
&lt;P&gt;The result of the above search is as follows (for example).&lt;/P&gt;
&lt;P&gt;"Access date and time"&amp;nbsp; &amp;nbsp; &amp;nbsp;"Username"&amp;nbsp; &amp;nbsp; &amp;nbsp;"IP address"&amp;nbsp; &amp;nbsp; &amp;nbsp;"Asset information"&amp;nbsp; &amp;nbsp; "FQDN"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"BytesIn(GB)"&lt;BR /&gt;2023-02-20&amp;nbsp;03:04:05&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;aa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X.X.X.X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mmm&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; box.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.5&lt;BR /&gt;2023-02-21 06:07:08&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y.Y.Y.Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nnn&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firestorage.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.3&lt;BR /&gt;2023-02-22 09:10:11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Z.Z.Z.Z&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lll&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;onedrive.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.3&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;/P&gt;
&lt;P&gt;Now, I am trying to get the number of (file) uploads in the last month for each user corresponding to each FQDN in the result above.&lt;BR /&gt;However, I still cannot make a correct search for it with the following queries using subsearch.&lt;/P&gt;
&lt;P&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"&lt;BR /&gt;[ search index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"&lt;BR /&gt;| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval bytes_in=bytes_in/1024/1024/1024&lt;BR /&gt;| eval bytes_in=round(bytes_in, 2)&lt;BR /&gt;| table end_time,user,src,src_remarks01,url,bytes_in&lt;BR /&gt;| sort - bytes_in&lt;BR /&gt;| head 10&lt;BR /&gt;| fields user url&lt;BR /&gt;| rename user as username, url as FQDN ]&lt;BR /&gt;| where bytes_in&amp;gt;0&lt;BR /&gt;| stats count sum(bytes_in) as Number_File_Uploads by username FQDN&lt;BR /&gt;| table end_time,username,src,src_remarks01,FQDN,bytes_in,Number_File_Uploads&lt;BR /&gt;| rename "end_time" as "Access date and time", "src" as "IP address", "src_remarks01" as "Asset information", "bytes_in" as "BytesIn(GB)"&lt;/P&gt;
&lt;P&gt;And as the result, I would like the column "Number of uploads" to be added to the table of the first result at the end like this.&lt;/P&gt;
&lt;P&gt;"Access date and time"&amp;nbsp; &amp;nbsp; &amp;nbsp;"Username"&amp;nbsp; &amp;nbsp; &amp;nbsp;"IP address"&amp;nbsp; &amp;nbsp; &amp;nbsp;"Asset information"&amp;nbsp; &amp;nbsp; "FQDN"&amp;nbsp; &amp;nbsp; &amp;nbsp; "BytesIn(GB)" "Number of uploads (times)"&lt;BR /&gt;2023-02-20&amp;nbsp;03:04:05&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;aa &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X.X.X.X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; mmm&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;box.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;BR /&gt;2023-02-21 06:07:08&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y.Y.Y.Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nnn&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firestorage.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;BR /&gt;2023-02-22 09:10:11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Z.Z.Z.Z&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lll&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onedrive.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;/P&gt;
&lt;P&gt;Does anyone have any idea on the seach queries that I am trying to do.&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635650#M220842</guid>
      <dc:creator>TrangCIC81</dc:creator>
      <dc:date>2023-03-23T14:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Number of uploads for the top users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635656#M220843</link>
      <description>&lt;P&gt;Try something like this (move the rename to outside the subsearch, and use eventstats)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
[ search index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| table end_time,user,src,src_remarks01,url,bytes_in
| sort - bytes_in
| head 10
| fields user url]
| rename user as username, url as FQDN 
| where bytes_in&amp;gt;0
| eventstats count sum(bytes_in) as Number_File_Uploads by username FQDN
| table end_time,username,src,src_remarks01,FQDN,bytes_in,Number_File_Uploads
| rename "end_time" as "Access date and time", "src" as "IP address", "src_remarks01" as "Asset information", "bytes_in" as "BytesIn(GB)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 09:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635656#M220843</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-23T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Number of uploads for the top users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635681#M220854</link>
      <description>&lt;P&gt;Thank you so much. It now can show the column "Number_File_Uploads" at the end of the table.&lt;/P&gt;&lt;P&gt;In addition to that, however, I see the "Access date and time" has now disappeared and the "username" is no more the same as the first result.&lt;/P&gt;&lt;P&gt;How can I keep the&amp;nbsp;"Access date and time" values being shown, basically all the columns's values that are shown at the first result should be kept the same, just the&amp;nbsp;"Number_File_Uploads" being added with its count values.&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635681#M220854</guid>
      <dc:creator>TrangCIC81</dc:creator>
      <dc:date>2023-03-23T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Number of uploads for the top users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635687#M220858</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
[ search index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| table user,bytes_in
| sort - bytes_in
| head 10
| fields user url]
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")
| eval bytes_in=bytes_in/1024/1024/1024
| rename user as username, url as FQDN 
| where bytes_in&amp;gt;0
| eventstats count sum(bytes_in) as Number_File_Uploads by username FQDN
| table end_time,username,src,src_remarks01,FQDN,bytes_in,Number_File_Uploads
| rename "end_time" as "Access date and time", "src" as "IP address", "src_remarks01" as "Asset information", "bytes_in" as "BytesIn(GB)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/635687#M220858</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-23T11:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Number of uploads for the top users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/636281#M220975</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Try something like this (move the rename to outside the subsearch, and use eventstats)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
[ search index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| table end_time,user,src,src_remarks01,url,bytes_in
| sort - bytes_in
| head 10
| fields user url]
| rename user as username, url as FQDN 
| where bytes_in&amp;gt;0
| eventstats count sum(bytes_in) as Number_File_Uploads by username FQDN
| table end_time,username,src,src_remarks01,FQDN,bytes_in,Number_File_Uploads
| rename "end_time" as "Access date and time", "src" as "IP address", "src_remarks01" as "Asset information", "bytes_in" as "BytesIn(GB)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;BR /&gt;Unfortunately the above did not keep the user column's values as well as the other columns's values staying the same as the first result.&lt;/P&gt;&lt;P&gt;I have tried with more testings and got the desired result with the following queries. Posting here so somebody else can refer in the future.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
[ search index=proxy sourcetype="XXX" filter_category="File_Storage/Sharing"
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| table end_time,user,url,bytes_in
| sort - bytes_in
| head 20
| fields user url ]
| eval end_time=strftime(_time, "%Y-%m-%d %H:%M:%S")
| eventstats count(eval(bytes_in&amp;gt;0)) as Number_File_Uploads by user url
| table end_time,user,src,src_remarks01,url,bytes_in,Number_File_Uploads
| eval bytes_in=bytes_in/1024/1024/1024
| eval bytes_in=round(bytes_in, 2)
| sort - bytes_in
| head 20
| rename "end_time" as "Access date and time", "src" as "IP address", "src_remarks01" as "Asset information", "bytes_in" as "BytesIn(GB)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 10:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-number-of-uploads-for-the-top-users/m-p/636281#M220975</guid>
      <dc:creator>TrangCIC81</dc:creator>
      <dc:date>2023-03-28T10:11:38Z</dc:date>
    </item>
  </channel>
</rss>

