<?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 email alert condition in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445369#M7155</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have an email alert that will send a table with a field Status.&lt;BR /&gt;
Now, I need to send this email every hour starting from 8am, until all values of Status is equal to 100%.&lt;BR /&gt;
If all Status is equals to 100% it should stop sending email.&lt;/P&gt;

&lt;P&gt;Is this possible to do in email alert?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 09:55:37 GMT</pubDate>
    <dc:creator>jvmerilla</dc:creator>
    <dc:date>2018-10-25T09:55:37Z</dc:date>
    <item>
      <title>email alert condition</title>
      <link>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445369#M7155</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have an email alert that will send a table with a field Status.&lt;BR /&gt;
Now, I need to send this email every hour starting from 8am, until all values of Status is equal to 100%.&lt;BR /&gt;
If all Status is equals to 100% it should stop sending email.&lt;/P&gt;

&lt;P&gt;Is this possible to do in email alert?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445369#M7155</guid>
      <dc:creator>jvmerilla</dc:creator>
      <dc:date>2018-10-25T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: email alert condition</title>
      <link>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445370#M7156</link>
      <description>&lt;P&gt;@jvmerilla,&lt;BR /&gt;
Yes, schedule it for every hour and add a condition to the search or alert &lt;CODE&gt;where Status&amp;lt;=100&lt;/CODE&gt; . In this case, when status is 100 , then the alert won't be triggered.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 10:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445370#M7156</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-25T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: email alert condition</title>
      <link>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445371#M7157</link>
      <description>&lt;P&gt;Hi @renjith.nair,&lt;/P&gt;

&lt;P&gt;Would it work if I have for example 10 events.&lt;BR /&gt;
For example by 8am, only 2 the events have Status=100%, so it will send alert containing all the events, including the Status=100% and Status!=100%.&lt;BR /&gt;
But when every event has Status=100%, is should stop sending email.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445371#M7157</guid>
      <dc:creator>jvmerilla</dc:creator>
      <dc:date>2018-10-25T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: email alert condition</title>
      <link>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445372#M7158</link>
      <description>&lt;P&gt;@jvmerilla,&lt;BR /&gt;
Yes , we can do it by adding this to your search (remove the previous where Status&amp;lt;100)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your search to get all the events with Status"|eventstats count(eval(if(Status=100,1,null()))) as count_by_status,count as total|where count_by_status!=total|fields Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below is a run anywhere example. Try it by changing the values of Status (100,90,80) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval Status="100,90,80"|makemv Status delim=","|mvexpand Status
|eventstats count(eval(if(Status=100,1,null()))) as count_by_status,count as total|where count_by_status!=total|fields Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/email-alert-condition/m-p/445372#M7158</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-25T12:32:57Z</dc:date>
    </item>
  </channel>
</rss>

