<?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 modify my search so it shows total MB per user for the day? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202493#M58773</link>
    <description>&lt;P&gt;See the updated answer...&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 20:20:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-21T20:20:06Z</dc:date>
    <item>
      <title>How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202489#M58769</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;bucket _time span=1d| eval  _time = strftime(_time,"%b %d, %Y")| stats sum(eval(Bytes_Written/(1024*1024))) as MBytes_Moved, values(User_Name), values(MBytes_Moved) by _time 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above is my current search, but only shows the total MB moved by all users. I want to show total MB moved, per user, for the day.&lt;/P&gt;

&lt;P&gt;What I am looking for would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date                    MBytes_Moved          User
Sept 20, 2016           2347                  john.smith
                        4675                  john.wagner
                        534                   mike.smith
                        1215                  pablo.johnson
Sept 21, 2016           953                   john.smith
                        3246                  lonnie.murray
                        2312                  max.effort
Sept 22, 2016           2347                  jason.adams
                        9087                  john.doe
                        5876                  william.shelton 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 20:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202489#M58769</guid>
      <dc:creator>cm22486</dc:creator>
      <dc:date>2016-09-20T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202490#M58770</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search |  bucket _time span=1d| eval  _time = strftime(_time,"%b %d, %Y")| stats sum(Bytes_Written) as MBytes_Moved by _time User_Name | eval MBytes_Moved=MBytes_Moved/(1024*1024) | stats sum(MBytes_Moved) as MBytes_Moved values(User_Name) values(MBytes_Moved) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Updated#2 for File_Moved column&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search |  bucket _time span=1d| eval  _time = strftime(_time,"%b %d, %Y")| stats sum(Bytes_Written) as MBytes_Moved count as File_Moved by _time User_Name | eval MBytes_Moved=MBytes_Moved/(1024*1024) | stats sum(MBytes_Moved) as MBytes_Moved list(User_Name) list(MBytes_Moved) list(File_Moved) as File_Moved by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202490#M58770</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-20T21:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202491#M58771</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; bucket _time span=1d| eval  _time = strftime(_time,"%b %d, %Y")| stats sum(eval(Bytes_Written/(1024*1024))) as MBytes_Moved by _time User_Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202491#M58771</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-09-20T21:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202492#M58772</link>
      <description>&lt;P&gt;Ahh we're close! Nice work and thank you! Last but not least, I forgot to include my "Files Moved" column in all of that. This is how I achieved "Files Moved" before, how could we append this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats sum(eval(Bytes_Written/(1024*1024))) as MBytes_Moved, Count(_time) as Files_Moved by User_Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2016 19:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202492#M58772</guid>
      <dc:creator>cm22486</dc:creator>
      <dc:date>2016-09-21T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202493#M58773</link>
      <description>&lt;P&gt;See the updated answer...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202493#M58773</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-21T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202494#M58774</link>
      <description>&lt;P&gt;&lt;IMG src="http://imgur.com/a/eBfdX" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://imgur.com/a/eBfdX"&gt;http://imgur.com/a/eBfdX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202494#M58774</guid>
      <dc:creator>cm22486</dc:creator>
      <dc:date>2016-09-21T20:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202495#M58775</link>
      <description>&lt;P&gt;That is a link to the screenshot of my results, we are so close, thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202495#M58775</guid>
      <dc:creator>cm22486</dc:creator>
      <dc:date>2016-09-21T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202496#M58776</link>
      <description>&lt;P&gt;The values aggregation function remove duplicate values and there could very well be duplicate/same count of files moved. Instead of values function, use list function instead. I've updated the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202496#M58776</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-21T20:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search so it shows total MB per user for the day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202497#M58777</link>
      <description>&lt;P&gt;He shoots he scores! Thanks so much, you're a wizard.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-so-it-shows-total-MB-per-user-for-the/m-p/202497#M58777</guid>
      <dc:creator>cm22486</dc:creator>
      <dc:date>2016-09-21T20:50:32Z</dc:date>
    </item>
  </channel>
</rss>

