<?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: WMI:FreeDiskSpace returns information about the CD-ROM drive on the server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52078#M96809</link>
    <description>&lt;P&gt;You could always add a where to the end of your query, something like;&lt;/P&gt;

&lt;P&gt;Where Name = 'C:' OR where Name = 'E:' etc, you may need to use C:\ depending on your system&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2012 21:12:14 GMT</pubDate>
    <dc:creator>Drainy</dc:creator>
    <dc:date>2012-09-05T21:12:14Z</dc:date>
    <item>
      <title>WMI:FreeDiskSpace returns information about the CD-ROM drive on the server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52077#M96808</link>
      <description>&lt;P&gt;I am using the following wmi query to gather free disk space info on a Windows 2008 R2 server. The problem I have is that the query seems to be sending information not only of the local disk on the server but also of the CD-ROM drive installed on the server.  &lt;/P&gt;

&lt;P&gt;[WMI:FreeDiskSpace]&lt;BR /&gt;
interval = 600&lt;BR /&gt;
wql = select Name, FreeSpace from Win32_LogicalDisk&lt;BR /&gt;
index = default&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;Here's the data the universal forwarder on the server is sending to Splunk, which I think is the data for the CD-ROM drive. Notice the NULL value for the FreeSpace parameter?&lt;/P&gt;

&lt;P&gt;20120905135639.531544&lt;BR /&gt;
FreeSpace=NULL&lt;BR /&gt;
Name=D:&lt;BR /&gt;
wmi_type=FreeDiskSpace&lt;BR /&gt;
host=paul  Options|  sourcetype=WMI:FreeDiskSpace   Options|  source=WMI:FreeDiskSpace   Options &lt;/P&gt;

&lt;P&gt;How do I get the universal forwarder send the free space information data only for the actual disk drives and not the cd-rom drive?&lt;/P&gt;

&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 21:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52077#M96808</guid>
      <dc:creator>usup_rajbahak</dc:creator>
      <dc:date>2012-09-05T21:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: WMI:FreeDiskSpace returns information about the CD-ROM drive on the server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52078#M96809</link>
      <description>&lt;P&gt;You could always add a where to the end of your query, something like;&lt;/P&gt;

&lt;P&gt;Where Name = 'C:' OR where Name = 'E:' etc, you may need to use C:\ depending on your system&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 21:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52078#M96809</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-09-05T21:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: WMI:FreeDiskSpace returns information about the CD-ROM drive on the server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52079#M96810</link>
      <description>&lt;P&gt;Thanks for your prompt reply Drainy. It's working for me now :-). &lt;/P&gt;

&lt;P&gt;But then, what if I have two logical drives?&lt;/P&gt;

&lt;P&gt;will "Where Name = 'C:' and 'the next logical drive:'" work?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 21:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52079#M96810</guid>
      <dc:creator>usup_rajbahak</dc:creator>
      <dc:date>2012-09-05T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: WMI:FreeDiskSpace returns information about the CD-ROM drive on the server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52080#M96811</link>
      <description>&lt;P&gt;Sorry, it wasn't very clear, the whole statement from where to 'E:' is to allow for two Names. The OR is part of the query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 00:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-FreeDiskSpace-returns-information-about-the-CD-ROM-drive-on/m-p/52080#M96811</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-09-06T00:09:58Z</dc:date>
    </item>
  </channel>
</rss>

