<?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: Finding change in disk space in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58821#M14443</link>
    <description>&lt;P&gt;Thanks very much for both of your suggestions.  This is a little outside the realm of the searches I am used to so I am having trouble wrapping my head around it a bit.&lt;/P&gt;

&lt;P&gt;Here are the two searches that give me the data that I want.&lt;/P&gt;

&lt;P&gt;source="WMI:FreeDiskSpace" earliest=-3mon@d latest=-3mon@d+d | stats Max(FreeMegabytes) as FreeMBs by host,Name | eval FreeGBs=FreeMBs/1024 | table host, Name, FreeGBs&lt;/P&gt;

&lt;P&gt;source="WMI:FreeDiskSpace" earliest=-d@d latest=@d | stats Max(FreeMegabytes) as FreeMBs by host,Name | eval FreeGBs=FreeMBs/1024 | table host, Name, FreeGBs&lt;/P&gt;

&lt;P&gt;So what I am hoping for is to add two panels (getting ahead of myself) to my dashboard, the first which is a table showing host, Name (which is the drive letter), Change.&lt;/P&gt;

&lt;P&gt;The second would be a bar chart grouped by server &amp;amp; disk (combined with something like: "eval Drive=host+"-"+Name "?) with the 3 months ago disk space as one bar, the current as a second. (I can tackle this one as a separate item, but just trying to pain the picture of what I am trying to accomplish).&lt;/P&gt;

&lt;P&gt;Thanks for your help,&lt;/P&gt;

&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2012 16:26:16 GMT</pubDate>
    <dc:creator>kholleran</dc:creator>
    <dc:date>2012-01-27T16:26:16Z</dc:date>
    <item>
      <title>Finding change in disk space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58818#M14440</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Disk space on a series of servers is monitored every 10 minutes.  What I want to do is run a search that says effectively "Change is Disk Space = Max(DiskSpaceToday) - Max(DiskSpace3MonthsAgo)" for each disk drive and sort by greatest change.&lt;/P&gt;

&lt;P&gt;I am having trouble understanding a way to obtain the two different numbers &amp;amp; subtract in a single search.&lt;/P&gt;

&lt;P&gt;Thanks for any help.&lt;/P&gt;

&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 20:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58818#M14440</guid>
      <dc:creator>kholleran</dc:creator>
      <dc:date>2012-01-26T20:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Finding change in disk space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58819#M14441</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;earliest=-1d@d latest=@d sourcetype=diskspace 
| stats max(DiskSpace) as DiskSpace by server 
| eval t="today"
| append [ search earliest=-3m-1d@d latest=-3m@d sourcetype=diskspace 
           | stats max(DiskSpace) as DiskSpace by server
           | eval t="threemonthsago" ]
| chart max(DiskSpace) by server,t
| eval changeinspace = today-threemonthsago
| sort - changeinspace
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can of course adjust the time ranges to suit the appropriate measurement period.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 23:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58819#M14441</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-26T23:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding change in disk space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58820#M14442</link>
      <description>&lt;P&gt;I had a look at the syntax of one of the charts in the deployment monitor app for index throughput&lt;BR /&gt;
and modified it to show disk usage now compared to the same time a week ago.&lt;/P&gt;

&lt;P&gt;Obviously things such as index, sourcetype and counter may be different or not relevant to your install.  But hopefully you should get the idea.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="perfmon" counter="Free Megabytes" instance="C:" host="my_TargetServer" | timechart partial=f span=30  min(Value) as "Free Space" | eval marker = "Today" | eval _time = _time+1800 | append [search index="perfmon" counter="Free Megabytes" instance="C:" host="my_TargetServer" earliest=-7d@d-30m latest=-6d@d-30m | timechart span=30m min(Value) as "Free Space" | eval marker="Last Week" | eval _time = _time+86400*7+1800] | timechart min(Free Space) by marker
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2012 23:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58820#M14442</guid>
      <dc:creator>Conradj</dc:creator>
      <dc:date>2012-01-26T23:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding change in disk space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58821#M14443</link>
      <description>&lt;P&gt;Thanks very much for both of your suggestions.  This is a little outside the realm of the searches I am used to so I am having trouble wrapping my head around it a bit.&lt;/P&gt;

&lt;P&gt;Here are the two searches that give me the data that I want.&lt;/P&gt;

&lt;P&gt;source="WMI:FreeDiskSpace" earliest=-3mon@d latest=-3mon@d+d | stats Max(FreeMegabytes) as FreeMBs by host,Name | eval FreeGBs=FreeMBs/1024 | table host, Name, FreeGBs&lt;/P&gt;

&lt;P&gt;source="WMI:FreeDiskSpace" earliest=-d@d latest=@d | stats Max(FreeMegabytes) as FreeMBs by host,Name | eval FreeGBs=FreeMBs/1024 | table host, Name, FreeGBs&lt;/P&gt;

&lt;P&gt;So what I am hoping for is to add two panels (getting ahead of myself) to my dashboard, the first which is a table showing host, Name (which is the drive letter), Change.&lt;/P&gt;

&lt;P&gt;The second would be a bar chart grouped by server &amp;amp; disk (combined with something like: "eval Drive=host+"-"+Name "?) with the 3 months ago disk space as one bar, the current as a second. (I can tackle this one as a separate item, but just trying to pain the picture of what I am trying to accomplish).&lt;/P&gt;

&lt;P&gt;Thanks for your help,&lt;/P&gt;

&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 16:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58821#M14443</guid>
      <dc:creator>kholleran</dc:creator>
      <dc:date>2012-01-27T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Finding change in disk space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58822#M14444</link>
      <description>&lt;P&gt;Is there a way I can just get it to poll just the free-space on the disk drive for the server in GB?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2015 00:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-change-in-disk-space/m-p/58822#M14444</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-07-11T00:21:08Z</dc:date>
    </item>
  </channel>
</rss>

