<?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: Alerting on free space AND % free space - Windows-based systems in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/528144#M149112</link>
    <description>&lt;P&gt;Answering my own question..&lt;/P&gt;&lt;P&gt;&amp;nbsp; In order to get it to return all hits, you need to supply a count.&amp;nbsp; So rather than&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;return host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a 'count'.&amp;nbsp; I used 1000 as a safe number, it doesn't appear to matter if you don't have 1000 items, so guess big.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;return 1000 host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 15:04:23 GMT</pubDate>
    <dc:creator>jmo1</dc:creator>
    <dc:date>2020-11-05T15:04:23Z</dc:date>
    <item>
      <title>Alerting on free space AND % free space - Windows-based systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527974#M149043</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;We are collecting perfmon information - "Free Megabytes" and "% Free Space".&amp;nbsp; All is well in the collection on these items.&amp;nbsp; We have an alerts that alerts us when free space is less than 10 "Free Megabytes".&amp;nbsp; Again, all is well.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I now need to modify the alert to report any hosts where "Free Megabytes" is less than 10 AND "% Free Space" is than 20.&amp;nbsp; (Numbers are just an example).&amp;nbsp; I trying but haven't gotten it to work.&amp;nbsp; Here is what I have in my testing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="Perfmon:Free Disk Space" instance!=_Total counter="% Free Space" Value&amp;lt;20 [ search host=* sourcetype="Perfmon:Free Disk Space" instance!=_Total counter="Free Megabytes" Value&amp;lt;10000 | return host ] | table host, instance, Value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two concerns..&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I need to look at all hosts all drives but not _Total (which combines)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I need to alert only if "Free Megabytes" &amp;lt; 10 and "% Free Space" &amp;lt;20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527974#M149043</guid>
      <dc:creator>jmo1</dc:creator>
      <dc:date>2020-11-04T17:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on free space AND % free space - Windows-based systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527988#M149052</link>
      <description>&lt;P&gt;What does "haven't gotten it to work" mean?&amp;nbsp; Do you get errors?&amp;nbsp; If you get no results, have you confirmed there&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; be results?&lt;/P&gt;&lt;P&gt;At first glance, the query looks like it should work so you should verify you have data that meet the search criteria.&lt;/P&gt;&lt;P&gt;BTW, including an index name in the query will help improve performance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 18:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527988#M149052</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-04T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on free space AND % free space - Windows-based systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527992#M149054</link>
      <description>&lt;LI-SPOILER&gt;Thanks for the response. I think part of my logic is sound, but if I run the following...&lt;BR /&gt;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="Perfmon:Free Disk Space" instance!=_Total counter="% Free Space" Value&amp;gt;0 [ search host=* sourcetype="Perfmon:Free Disk Space" instance!=_Total counter="Free Megabytes" Value&amp;gt;0 | return host ] | table host, instance, Value​&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Which says basically, return all hosts/drives where Free Megabytes &amp;gt; 0 and % Free Space &amp;gt;0, which should return everything.&amp;nbsp; I get the return from a single host.&lt;BR /&gt;&lt;BR /&gt;How do I get it to iterate through all of the hosts?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And thanks for the index suggestion.&lt;/P&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 04 Nov 2020 18:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/527992#M149054</guid>
      <dc:creator>jmo1</dc:creator>
      <dc:date>2020-11-04T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on free space AND % free space - Windows-based systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/528144#M149112</link>
      <description>&lt;P&gt;Answering my own question..&lt;/P&gt;&lt;P&gt;&amp;nbsp; In order to get it to return all hits, you need to supply a count.&amp;nbsp; So rather than&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;return host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a 'count'.&amp;nbsp; I used 1000 as a safe number, it doesn't appear to matter if you don't have 1000 items, so guess big.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;return 1000 host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 15:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alerting-on-free-space-AND-free-space-Windows-based-systems/m-p/528144#M149112</guid>
      <dc:creator>jmo1</dc:creator>
      <dc:date>2020-11-05T15:04:23Z</dc:date>
    </item>
  </channel>
</rss>

