<?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 Throttle Alerts for a table of results until end of the current day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435010#M124064</link>
    <description>&lt;P&gt;I am trying to setup an alert which will run every hour and considers the data from the start of current day(earliest=@d) and send the summary of table results via email. As long as the first set of results are produced I would like to throttle it until end of the current day. &lt;/P&gt;

&lt;P&gt;When I select the trigger option ONCE , i have the values like hours, days etc for which if select 24 or 1 respectively , I am afraid my alert will trigger again only after 24 hours or a day from the time it was triggered last. &lt;/P&gt;

&lt;P&gt;When I evaluate a Date field and try to throttle it using the PER RESULT option and using Date as a suppressing field, the alert email only has the first line &amp;amp; the Grand Total line from my table summary - since my table of results are lost , I cant use this method. &lt;/P&gt;

&lt;P&gt;Could you please advise a way to keep my table result structure while letting me to throttle until end of the current day. &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;H2&gt;Desired Result:&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;      SYSTEM      Qname        FAIL         TRYAGAIN  Grand Total
      sys1         ABC*        300            25        325
      sys1         DEF*        210            55        265
      sys1         GHI*        470            25        495
      sys1         JK*         250            25        275
               Grand Total     1230           130       1360
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Query : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz sourcetype="abc" SYSTEM="sys1" 
| dedup client NAME STATUS 
| search STATUS=FAIL OR STATUS=TRYAGAIN 
| eval "Qname"=case(NAME like "ABC%" , "ABC*", NAME like "DEF%" ,"DEF*", NAME like "GHI%" , "GHI*" , NAME like "JK%","JK*", 1=1,"Others") 
| search "Qname"!=Others 
| eventstats count as Grandtotal 
| where Grandtotal &amp;gt;50 
| eval Date=strftime(_time, "%d/%m/%Y") 
| stats count(eval(STATUS="FAIL")) as "FAIL" , count(eval(STATUS="TRYAGAIN")) as "TRYAGAIN" values(Date) as Date by SYSTEM, "Qname" 
| table Date SYSTEM "Qname" FAIL TRYAGAIN
| addtotals fieldname="Grand Total" col=t row=t labelfield="Qname" label="Grand Total"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Aug 2019 19:17:41 GMT</pubDate>
    <dc:creator>njohnson7</dc:creator>
    <dc:date>2019-08-07T19:17:41Z</dc:date>
    <item>
      <title>Throttle Alerts for a table of results until end of the current day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435010#M124064</link>
      <description>&lt;P&gt;I am trying to setup an alert which will run every hour and considers the data from the start of current day(earliest=@d) and send the summary of table results via email. As long as the first set of results are produced I would like to throttle it until end of the current day. &lt;/P&gt;

&lt;P&gt;When I select the trigger option ONCE , i have the values like hours, days etc for which if select 24 or 1 respectively , I am afraid my alert will trigger again only after 24 hours or a day from the time it was triggered last. &lt;/P&gt;

&lt;P&gt;When I evaluate a Date field and try to throttle it using the PER RESULT option and using Date as a suppressing field, the alert email only has the first line &amp;amp; the Grand Total line from my table summary - since my table of results are lost , I cant use this method. &lt;/P&gt;

&lt;P&gt;Could you please advise a way to keep my table result structure while letting me to throttle until end of the current day. &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;H2&gt;Desired Result:&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;      SYSTEM      Qname        FAIL         TRYAGAIN  Grand Total
      sys1         ABC*        300            25        325
      sys1         DEF*        210            55        265
      sys1         GHI*        470            25        495
      sys1         JK*         250            25        275
               Grand Total     1230           130       1360
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Query : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz sourcetype="abc" SYSTEM="sys1" 
| dedup client NAME STATUS 
| search STATUS=FAIL OR STATUS=TRYAGAIN 
| eval "Qname"=case(NAME like "ABC%" , "ABC*", NAME like "DEF%" ,"DEF*", NAME like "GHI%" , "GHI*" , NAME like "JK%","JK*", 1=1,"Others") 
| search "Qname"!=Others 
| eventstats count as Grandtotal 
| where Grandtotal &amp;gt;50 
| eval Date=strftime(_time, "%d/%m/%Y") 
| stats count(eval(STATUS="FAIL")) as "FAIL" , count(eval(STATUS="TRYAGAIN")) as "TRYAGAIN" values(Date) as Date by SYSTEM, "Qname" 
| table Date SYSTEM "Qname" FAIL TRYAGAIN
| addtotals fieldname="Grand Total" col=t row=t labelfield="Qname" label="Grand Total"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435010#M124064</guid>
      <dc:creator>njohnson7</dc:creator>
      <dc:date>2019-08-07T19:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Throttle Alerts for a table of results until end of the current day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435011#M124065</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;When I evaluate a Date field and try to throttle it using the PER RESULT option and using Date as a suppressing field, the alert email only has the first line &amp;amp; the Grand Total line from my table summary - since my table of results are lost , I cant use this method.&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I'm not fully following this. Could you try doing that again but with &lt;CODE&gt;_time&lt;/CODE&gt; to &lt;CODE&gt;now()&lt;/CODE&gt; and &lt;CODE&gt;values(Date) as Date by SYSTEM, "Qname"&lt;/CODE&gt; to &lt;CODE&gt;by Date SYSTEM "Qname"&lt;/CODE&gt; e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=xyz sourcetype="abc" SYSTEM="sys1" 
 | dedup client NAME STATUS 
 | search STATUS=FAIL OR STATUS=TRYAGAIN 
 | eval "Qname"=case(NAME like "ABC%" , "ABC*", NAME like "DEF%" ,"DEF*", NAME like "GHI%" , "GHI*" , NAME like "JK%","JK*", 1=1,"Others") 
 | search "Qname"!=Others 
 | eventstats count as Grandtotal 
 | where Grandtotal &amp;gt;50 
 | eval _Date=strftime(now(), "%d/%m/%Y") 
 | stats count(eval(STATUS="FAIL")) as "FAIL" , count(eval(STATUS="TRYAGAIN")) as "TRYAGAIN" by _Date SYSTEM "Qname" 
 | table _Date SYSTEM "Qname" FAIL TRYAGAIN
 | addtotals fieldname="Grand Total" col=t row=t labelfield="Qname" label="Grand Total"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435011#M124065</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-08-07T21:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Throttle Alerts for a table of results until end of the current day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435012#M124066</link>
      <description>&lt;P&gt;@jacobevans thankyou but it is more or less similar to what I already tried. The results appears in the below format. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date             SYSTEM      Qname        FAIL         TRYAGAIN  Grand Total
08/08/2019       sys1         ABC*        300            25        325
08/08/2019       sys1         DEF*        210            55        265
08/08/2019       sys1         GHI*        470            25        495
08/08/2019       sys1         JK*         250            25        275
            Grand Total     1230           130       1360
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now when I try to trigger the alerts using the "FOR EACH RESULT" option and giving Date as the field value for suppressing the alerts. &lt;/P&gt;

&lt;P&gt;I only get the first line and the last line from my table of results since the date value is same:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Date             SYSTEM      Qname        FAIL         TRYAGAIN  Grand Total
 08/08/2019       sys1         ABC*        300            25        325
                           Grand Total     1230           130       1360
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to send my entire table contents in the alerts in the format I have shown in the example , however I would like to suppress it only until end of the day and start over again as soon as the next day starts. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Throttle-Alerts-for-a-table-of-results-until-end-of-the-current/m-p/435012#M124066</guid>
      <dc:creator>njohnson7</dc:creator>
      <dc:date>2019-08-08T07:05:56Z</dc:date>
    </item>
  </channel>
</rss>

