<?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: Create alert from stats value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323234#M96470</link>
    <description>&lt;P&gt;Thanks that is exactly what I needed. &lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 12:20:59 GMT</pubDate>
    <dc:creator>jrprez1804</dc:creator>
    <dc:date>2017-07-24T12:20:59Z</dc:date>
    <item>
      <title>Create alert from stats value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323232#M96468</link>
      <description>&lt;P&gt;We have a script that pulls the disk info than the Universalforwarder reads the data and send to Splunk. With the query below I can generate a table with a clean output but now I need an alert on diskusage in above 80% utilization. In the example I would like DB1 C drive current condition to fire an triggered Splunk alert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=popeye host=DB1 OR DB2 sourcetype="DiskInfo*" 
| rex "C: \s+\d+\.\d\s+(?&amp;lt;Percent_C_FS&amp;gt;\S+)"
| rex "D: \s+\d+\.\d\s+(?&amp;lt;Percent_D_FS&amp;gt;\S+)"
dudup host | stats count by host Percent_C_FS Percent_D_FS



host         Percent_C_FS       Percent_D_FS

DB1                       15                                 75
DB2                      55                                 65
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jul 2017 18:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323232#M96468</guid>
      <dc:creator>jrprez1804</dc:creator>
      <dc:date>2017-07-23T18:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert from stats value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323233#M96469</link>
      <description>&lt;P&gt;Try this search.  Set the alert to trigger if the result count is not zero.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=popeye host=DB1 OR DB2 sourcetype="DiskInfo*" 
| rex "C: \s+\d+\.\d\s+(?&amp;lt;Percent_C_FS&amp;gt;\S+)"
| rex "D: \s+\d+\.\d\s+(?&amp;lt;Percent_D_FS&amp;gt;\S+)"
| where (Percent_C_FS &amp;lt; 20) OR (Percent_D_FS &amp;lt; 20)
dudup host | stats count by host Percent_C_FS Percent_D_FS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jul 2017 18:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323233#M96469</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-23T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert from stats value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323234#M96470</link>
      <description>&lt;P&gt;Thanks that is exactly what I needed. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 12:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-alert-from-stats-value/m-p/323234#M96470</guid>
      <dc:creator>jrprez1804</dc:creator>
      <dc:date>2017-07-24T12:20:59Z</dc:date>
    </item>
  </channel>
</rss>

