<?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 Calculate totals for disk space over time and show Top 20 disk hogs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32109#M6671</link>
    <description>&lt;P&gt;I posted this question in the past here:  &lt;A href="http://splunk-base.splunk.com/answers/35859/timechart-command-to-calculate-totals-for-7-days" target="_blank"&gt;http://splunk-base.splunk.com/answers/35859/timechart-command-to-calculate-totals-for-7-days&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However I feel that perhaps my question was buried.&lt;/P&gt;

&lt;P&gt;I have a log indexed in splunk which contains the disk space usage for home directories.  Below is an example of what the text in the log looks like.&lt;/P&gt;

&lt;P&gt;1351424 /home/crazysue&lt;BR /&gt;
36  /home/support&lt;BR /&gt;
3001388 /home/hhogan&lt;BR /&gt;
179624  /home/hpotter&lt;BR /&gt;
2612    /home/lluther&lt;/P&gt;

&lt;P&gt;I made a search to extract the size and username into fields and make a table of the results for me:&lt;/P&gt;

&lt;P&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;[\d]+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" max_match=1000 | search NOT UserName="shares" | table UserName Space | sort -Space | head 20&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;

&lt;P&gt;I saved the search and gave it a name.&lt;/P&gt;

&lt;P&gt;AT this point I decided to graph this search.  Here's what I have for my dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;YNFS1 Space Usage&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;

  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="TimeRangePicker" layoutPanel="panel_row1_col1"&amp;gt;
    &amp;lt;param name="searchWhenChanged"&amp;gt;True&amp;lt;/param&amp;gt;
    &amp;lt;param name="default"&amp;gt;Last 24 hours&amp;lt;/param&amp;gt;
      &amp;lt;module name="HiddenSavedSearch" layoutPanel="panel_row2_col1" group="Space Usage by user over a given time" autoRun="True"&amp;gt;
        &amp;lt;param name="savedSearch"&amp;gt;Andrew ynfs1 search&amp;lt;/param&amp;gt;
        &amp;lt;module name="HiddenChartFormatter"&amp;gt;
          &amp;lt;param name="charting.chart"&amp;gt;bar&amp;lt;/param&amp;gt;
          &amp;lt;param name="chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
          &amp;lt;param name="secondaryAxisTitle.text"&amp;gt;Space&amp;lt;/param&amp;gt;
          &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;
            &amp;lt;module name="FlashChart"&amp;gt;
              &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
              &amp;lt;param name="height"&amp;gt;400px&amp;lt;/param&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
          &amp;lt;module name="ViewRedirectorLink"&amp;gt;
            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
            &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;      
          &amp;lt;/module&amp;gt; 
      &amp;lt;/module&amp;gt;
     &amp;lt;module name="HiddenSavedSearch" layoutPanel="panel_row3_col1" group="Space Usage by user over a given time" autoRun="True"&amp;gt;
       &amp;lt;param name="savedSearch"&amp;gt;Andrew ynfs1 search&amp;lt;/param&amp;gt;
       &amp;lt;module name="SimpleResultsTable"&amp;gt;&amp;lt;/module&amp;gt;
       &amp;lt;module name="ViewRedirectorLink"&amp;gt;
         &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
         &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;      
       &amp;lt;/module&amp;gt; 
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt; 
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This produces a nice bar graph and a small non clickable results table at the bottom.  However the SimpleResultsTable at the bottom is only displaying 10 results and not 20.  &lt;/P&gt;

&lt;P&gt;Also when i change the time in the time range picker, the results are not what I am looking for.  I tried using timechart by changing my search to this:&lt;/P&gt;

&lt;P&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;[\d]+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" max_match=1000 | search NOT UserName="shares" | timechart sum(Space) by UserName | sort -Space | head 20&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;

&lt;P&gt;My results looked good again for 24 hours but as soon as I picked 7 days or more the results were not correct.&lt;/P&gt;

&lt;P&gt;I'd like to always show the top 20 usernames who are taking up the most disk space for a given period of time.  If I was to select 7 days from the time range picker, I'd like splunk to look at 7 days worth of data, calculate who the top 20 disk hogs were for a 7 day stretch and then present them to me in a chart and simple results table.  &lt;/P&gt;

&lt;P&gt;I tried putting in paginator for the table but it was complaining about how having any "events".  I changed events to "results" and it still complained.  Can anyone give me some advice on how to  make this tables and charts work how I want?  I've been reading so much my brain is so fried!  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:12:37 GMT</pubDate>
    <dc:creator>gnovak</dc:creator>
    <dc:date>2020-09-28T10:12:37Z</dc:date>
    <item>
      <title>Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32109#M6671</link>
      <description>&lt;P&gt;I posted this question in the past here:  &lt;A href="http://splunk-base.splunk.com/answers/35859/timechart-command-to-calculate-totals-for-7-days" target="_blank"&gt;http://splunk-base.splunk.com/answers/35859/timechart-command-to-calculate-totals-for-7-days&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However I feel that perhaps my question was buried.&lt;/P&gt;

&lt;P&gt;I have a log indexed in splunk which contains the disk space usage for home directories.  Below is an example of what the text in the log looks like.&lt;/P&gt;

&lt;P&gt;1351424 /home/crazysue&lt;BR /&gt;
36  /home/support&lt;BR /&gt;
3001388 /home/hhogan&lt;BR /&gt;
179624  /home/hpotter&lt;BR /&gt;
2612    /home/lluther&lt;/P&gt;

&lt;P&gt;I made a search to extract the size and username into fields and make a table of the results for me:&lt;/P&gt;

&lt;P&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;[\d]+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" max_match=1000 | search NOT UserName="shares" | table UserName Space | sort -Space | head 20&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;

&lt;P&gt;I saved the search and gave it a name.&lt;/P&gt;

&lt;P&gt;AT this point I decided to graph this search.  Here's what I have for my dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;YNFS1 Space Usage&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;

  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="TimeRangePicker" layoutPanel="panel_row1_col1"&amp;gt;
    &amp;lt;param name="searchWhenChanged"&amp;gt;True&amp;lt;/param&amp;gt;
    &amp;lt;param name="default"&amp;gt;Last 24 hours&amp;lt;/param&amp;gt;
      &amp;lt;module name="HiddenSavedSearch" layoutPanel="panel_row2_col1" group="Space Usage by user over a given time" autoRun="True"&amp;gt;
        &amp;lt;param name="savedSearch"&amp;gt;Andrew ynfs1 search&amp;lt;/param&amp;gt;
        &amp;lt;module name="HiddenChartFormatter"&amp;gt;
          &amp;lt;param name="charting.chart"&amp;gt;bar&amp;lt;/param&amp;gt;
          &amp;lt;param name="chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
          &amp;lt;param name="secondaryAxisTitle.text"&amp;gt;Space&amp;lt;/param&amp;gt;
          &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;
            &amp;lt;module name="FlashChart"&amp;gt;
              &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
              &amp;lt;param name="height"&amp;gt;400px&amp;lt;/param&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
          &amp;lt;module name="ViewRedirectorLink"&amp;gt;
            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
            &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;      
          &amp;lt;/module&amp;gt; 
      &amp;lt;/module&amp;gt;
     &amp;lt;module name="HiddenSavedSearch" layoutPanel="panel_row3_col1" group="Space Usage by user over a given time" autoRun="True"&amp;gt;
       &amp;lt;param name="savedSearch"&amp;gt;Andrew ynfs1 search&amp;lt;/param&amp;gt;
       &amp;lt;module name="SimpleResultsTable"&amp;gt;&amp;lt;/module&amp;gt;
       &amp;lt;module name="ViewRedirectorLink"&amp;gt;
         &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
         &amp;lt;param name="popup"&amp;gt;True&amp;lt;/param&amp;gt;      
       &amp;lt;/module&amp;gt; 
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt; 
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This produces a nice bar graph and a small non clickable results table at the bottom.  However the SimpleResultsTable at the bottom is only displaying 10 results and not 20.  &lt;/P&gt;

&lt;P&gt;Also when i change the time in the time range picker, the results are not what I am looking for.  I tried using timechart by changing my search to this:&lt;/P&gt;

&lt;P&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;[\d]+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" max_match=1000 | search NOT UserName="shares" | timechart sum(Space) by UserName | sort -Space | head 20&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;

&lt;P&gt;My results looked good again for 24 hours but as soon as I picked 7 days or more the results were not correct.&lt;/P&gt;

&lt;P&gt;I'd like to always show the top 20 usernames who are taking up the most disk space for a given period of time.  If I was to select 7 days from the time range picker, I'd like splunk to look at 7 days worth of data, calculate who the top 20 disk hogs were for a 7 day stretch and then present them to me in a chart and simple results table.  &lt;/P&gt;

&lt;P&gt;I tried putting in paginator for the table but it was complaining about how having any "events".  I changed events to "results" and it still complained.  Can anyone give me some advice on how to  make this tables and charts work how I want?  I've been reading so much my brain is so fried!  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32109#M6671</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32110#M6672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;In order to see 20 results in your table, inside your SimpleResultsTable module, you need to add the following:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;param name="count"&amp;gt;20&amp;lt;/param&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Maybe you should change your search by replacing your timechart command with the following:&lt;BR /&gt;
&lt;CODE&gt;stats sum(space) by username&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;From looking at your search, I would imagine that the UserName and Space fields should really be written in lowercase because your regular expressions &lt;CODE&gt;&amp;lt;space&amp;gt; and &amp;lt;username&amp;gt;&lt;/CODE&gt; are lowercase.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32110#M6672</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-12-09T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32111#M6673</link>
      <description>&lt;P&gt;oh actually i fixed that.  I made them all uppercase.  It was just a typo.  Thanks for pointing that out.  I'll try these suggestions and see if this resolves the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 15:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32111#M6673</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32112#M6674</link>
      <description>&lt;P&gt;When I try to add the Count feature for the results table, I got the error "Misconfigured view - Unknown parameter 'count' is defined for module HiddenSavedSearch. Make sure the parameter is specified in HiddenSavedSearch.conf.".  I'm going ot look into this.    I added it directly under the results table like this:  &lt;MODULE name="SimpleResultsTable"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
       &lt;OBJECT&gt;&lt;PARAM name="count" /&gt;20&lt;/OBJECT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 15:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32112#M6674</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32113#M6675</link>
      <description>&lt;P&gt;Also i might add when looked at this post and trying to edit it based on the uppercase issue you pointed out, in the editing window it IS uppercase throughout the entire search.  However when viewing it here, it is not.  May have something to do with the &amp;lt;&amp;gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 15:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32113#M6675</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T15:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32114#M6676</link>
      <description>&lt;P&gt;I even tried changing HiddenSavedSearch to just HiddenSearch and putting the search directly into the dashboard XML.  I still go thee same exact error.  Misconfigured view 'My View' - Unknown parameter 'count' is defined for module HiddenSearch. Make sure the parameter is specified in HiddenSearch.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32114#M6676</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32115#M6677</link>
      <description>&lt;P&gt;Is this perhaps a bug?????&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32115#M6677</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32116#M6678</link>
      <description>&lt;P&gt;When you changed it to HiddenSearch, did you change the param underneath it from savedSearch to search?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32116#M6678</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-12-09T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32117#M6679</link>
      <description>&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row3_col1" group="Space Usage by user over a given time" autorun="True"&gt;&lt;BR /&gt;
       &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&amp;lt;Space&amp;gt;[\d]+)\s*\/home\/(?&amp;lt;UserName&amp;gt;\S+)" max_match=1000 | search NOT UserName="shares" | table UserName Space | sort -Space | head 20&lt;BR /&gt;
       &lt;MODULE name="SimpleResultsTable"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
       &lt;PARAM name="count" /&gt;20&lt;BR /&gt;
       &lt;MODULE name="ViewRedirectorLink"&gt;&lt;BR /&gt;
         &lt;PARAM name="viewTarget" /&gt;flashtimeline&lt;BR /&gt;
         &lt;PARAM name="popup" /&gt;True&lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32117#M6679</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T10:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32118#M6680</link>
      <description>&lt;P&gt;also this editing window is not showing that the search has the special characters in the search to replace the &amp;lt;&amp;gt;....&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32118#M6680</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32119#M6681</link>
      <description>&lt;P&gt;&lt;MODULE name="SimpleResultsTable"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
That's wrong. It should be &lt;MODULE name="SimpleResultsTable"&gt;&lt;OBJECT&gt;&lt;PARAM name="count" /&gt;20&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32119#M6681</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-12-09T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32120#M6682</link>
      <description>&lt;P&gt;ah yeah...let me fix that...ugh alway some minor detail I miss!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32120#M6682</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32121#M6683</link>
      <description>&lt;P&gt;That worked.  Also using stats in the search also works, however I still have the same problem where if I change the time range, my results are not what I'm expecting.  For example, here are the results from the results table for 7 days:&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32121#M6683</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32122#M6684</link>
      <description>&lt;P&gt;UserName    Space&lt;BR /&gt;
1   bruce   43326964&lt;BR /&gt;
2   bruce   43237676&lt;BR /&gt;
3   bruce   43237676&lt;BR /&gt;
4   bruce   43236904&lt;BR /&gt;
5   bruce   43236824&lt;BR /&gt;
6   bruce   43229092&lt;BR /&gt;
7   bruce   43227868&lt;BR /&gt;
8&lt;BR /&gt;&lt;BR /&gt;
fhu&lt;BR /&gt;
fhuang&lt;BR /&gt;
file&lt;/P&gt;

&lt;P&gt;41706920&lt;BR /&gt;
108&lt;BR /&gt;
4&lt;BR /&gt;
9   fhu 41706908&lt;BR /&gt;
10  fhu 41706908&lt;BR /&gt;
11  fhu 41706908&lt;BR /&gt;
12  fhu 41706904&lt;BR /&gt;
13  fhu 41706900&lt;BR /&gt;
14  fhu 41706896&lt;BR /&gt;
15  fhu 41706896&lt;BR /&gt;
16  lfan    39745952&lt;BR /&gt;
17  lfan    39742372&lt;BR /&gt;
18  lfan    39659892&lt;BR /&gt;
19  lfan    39633424&lt;BR /&gt;
20  lfan    39632344&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32122#M6684</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32123#M6685</link>
      <description>&lt;P&gt;I think that I should change the simpleresulttable back to savedsearch...i will try that&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32123#M6685</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32124#M6686</link>
      <description>&lt;P&gt;I think that did it...numbers are looking good.  I'm sort of surprised timechart didn't work w/ this situation.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32124#M6686</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32125#M6687</link>
      <description>&lt;P&gt;however i am noticing something is weird with the space. Splunk reports a user bwilson as having 2771158076k in their home dir over a 30 day period and being #2 on the list of the user having the most disk space.  However bwilson only has 168K    /home/bwilson/.  Also bwilson no longer works here and hasn't for about 6 months.  ?????  perhaps multivalue fields are messing up the counts?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32125#M6687</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32126#M6688</link>
      <description>&lt;P&gt;host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;\d+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" | search NOT UserName="shares" | timechart Max(Space) span=1d by UserName where max in top20&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;

&lt;P&gt;This seems to work a lot better it seems.  although i liked the look of stats better...&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 16:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32126#M6688</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32127#M6689</link>
      <description>&lt;P&gt;This command doesn't seem to be sorting the results in size order though.  I tried even doing host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;\d+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" | search NOT UserName="shares" | timechart Max(Space) span=1d by UserName | sort -Max(Space) | head 20 or using the old command and putting | | sort -Max(Space) at the end of the old command and it didn't work it seems&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 18:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32127#M6689</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T18:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate totals for disk space over time and show Top 20 disk hogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32128#M6690</link>
      <description>&lt;P&gt;This search eventually works out well:  host="ynfs1" sourcetype=userdiskusage | rex field=_raw "(?&lt;SPACE&gt;\d+)\s*\/home\/(?&lt;USERNAME&gt;\S+)" | search NOT UserName="shares" | eval SpaceGB = Space/1048576| timechart Max(SpaceGB) span=1d by UserName where max in top20.  Thanks for your input!&lt;/USERNAME&gt;&lt;/SPACE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 19:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-totals-for-disk-space-over-time-and-show-Top-20-disk/m-p/32128#M6690</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-12-09T19:32:37Z</dc:date>
    </item>
  </channel>
</rss>

