<?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: Need help on Alert Custom Trigger for a returned Search Percentage in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Need-help-on-Alert-Custom-Trigger-for-a-returned-Search/m-p/563515#M12907</link>
    <description>&lt;P&gt;I find I get better results by doing all the filtering in my query and having the alert trigger if the number of results is not zero.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="orderdetail-prod"
| stats count(PriceModelLevel) AS total, count(eval(PriceModelLevel="DEFAULT_SITEONE_LIST")) AS Default_Siteone_List
| eval percent_difference=((Default_Siteone_List/total)*100) 
| where percent_difference &amp;gt;= 20&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 16 Aug 2021 19:45:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-08-16T19:45:34Z</dc:date>
    <item>
      <title>Need help on Alert Custom Trigger for a returned Search Percentage</title>
      <link>https://community.splunk.com/t5/Alerting/Need-help-on-Alert-Custom-Trigger-for-a-returned-Search/m-p/563510#M12906</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following Search that returns a percent_difference value.&lt;/P&gt;&lt;P&gt;sourcetype="orderdetail-prod"|stats count(PriceModelLevel) AS total, count(eval(PriceModelLevel="DEFAULT_SITEONE_LIST")) AS Default_Siteone_List|eval percent_difference=((Default_Siteone_List/total)*100) | table percent_difference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can't figure out how to trigger an alert if the percentage_difference is &amp;gt;=20.&amp;nbsp; I tried:&lt;/P&gt;&lt;P&gt;search percentage_difference &amp;gt;=20&lt;/P&gt;&lt;P&gt;Does this seem correct?&amp;nbsp; If so, perhaps another setting in the Alert config is mucking it up as it never is triggered.&lt;/P&gt;&lt;P&gt;Thanks for any help you can give.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Need-help-on-Alert-Custom-Trigger-for-a-returned-Search/m-p/563510#M12906</guid>
      <dc:creator>mninansplunk</dc:creator>
      <dc:date>2021-08-16T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Alert Custom Trigger for a returned Search Percentage</title>
      <link>https://community.splunk.com/t5/Alerting/Need-help-on-Alert-Custom-Trigger-for-a-returned-Search/m-p/563515#M12907</link>
      <description>&lt;P&gt;I find I get better results by doing all the filtering in my query and having the alert trigger if the number of results is not zero.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="orderdetail-prod"
| stats count(PriceModelLevel) AS total, count(eval(PriceModelLevel="DEFAULT_SITEONE_LIST")) AS Default_Siteone_List
| eval percent_difference=((Default_Siteone_List/total)*100) 
| where percent_difference &amp;gt;= 20&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Aug 2021 19:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Need-help-on-Alert-Custom-Trigger-for-a-returned-Search/m-p/563515#M12907</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-16T19:45:34Z</dc:date>
    </item>
  </channel>
</rss>

