<?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: How to turn off an alert for 30 minutes on a given day? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243666#M4543</link>
    <description>&lt;P&gt;You'd have to write a cron type schedule for that or possibly more than one cron schedule.  All these assume you run every 15 minutes.&lt;/P&gt;

&lt;P&gt;Something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; */15 * * * 1,2,3,4,5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And another for Sunday normal hours.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; */15 0,1,4-23 * * 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then one for 2-230 and 315-4 on Sunday &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 0,15,30 2 * * 0
 15,30,45 3 * * 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But use the same search for all...  Name them differently, etc.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 18:01:15 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-11-21T18:01:15Z</dc:date>
    <item>
      <title>How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243665#M4542</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;

&lt;P&gt;I have an alert that I want to 'suppress' / 'turn off' for 30 min a week. Every Sunday a connection is dropped from 2:45pm to 3:15pm. The drop is part of 'normal' Sunday work that occurs. We don't need the 'false positives' hitting our on-call. Is there a way to stop alerting for just 30 min on a given day?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Carl&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 17:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243665#M4542</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2016-11-21T17:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243666#M4543</link>
      <description>&lt;P&gt;You'd have to write a cron type schedule for that or possibly more than one cron schedule.  All these assume you run every 15 minutes.&lt;/P&gt;

&lt;P&gt;Something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; */15 * * * 1,2,3,4,5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And another for Sunday normal hours.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; */15 0,1,4-23 * * 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then one for 2-230 and 315-4 on Sunday &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 0,15,30 2 * * 0
 15,30,45 3 * * 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But use the same search for all...  Name them differently, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243666#M4543</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-11-21T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243667#M4544</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I would embed it in a search:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2184i5592BB0B7C5928B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2185i79C0CB49692E54F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;With a search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | search NOT dactivate=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kind Regards&lt;BR /&gt;
SierraX&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243667#M4544</guid>
      <dc:creator>SierraX</dc:creator>
      <dc:date>2016-11-21T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243668#M4545</link>
      <description>&lt;P&gt;Thanks for the response SierraX. Here is the search I'm running. New to Splunk, I'm getting an error message "Error in 'eval' command: The expression is malformed. Expected"&lt;/P&gt;

&lt;P&gt;index=hdx_was source="/hdx1/was70-32/AppServer/profiles/AppSrv01/logs/PRD3_XF*/SystemOut.log" "A connection failed but has been re-established" |eval wday=strftime(now(),"%a"),homi=strftime(now(),"%H%M"),dactivate=if(wday"Sun" AND homi&amp;gt;=1445 AND homi&amp;lt;=1530,"off",NULL)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243668#M4545</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2020-09-29T11:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243669#M4546</link>
      <description>&lt;P&gt;Sorry for the late response... &lt;BR /&gt;
when this is a 1to1 copy of the search, you forgot a = (equal) between wday and "Sun"&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 21:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243669#M4546</guid>
      <dc:creator>SierraX</dc:creator>
      <dc:date>2016-11-21T21:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243670#M4547</link>
      <description>&lt;P&gt;Thanks for the help. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243670#M4547</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2016-11-22T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off an alert for 30 minutes on a given day?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243671#M4548</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;

&lt;P&gt;Got back to working on this. For some reason this is still alerting between 14:45 and 16:00 on Sundays. Not sure what I'm missing. Thanks.&lt;/P&gt;

&lt;P&gt;index=hdx_was source="/hdx1/was70-32/AppServer/profiles/AppSrv01/logs/PRD3_XF*/SystemOut.log" "A connection failed but has been re-established" | eval wday=strftime(now(),"%a"),homi=strftime(now(),"%H%M"),dactivate=if(wday="Sun" AND homi&amp;gt;=1445 AND homi&amp;lt;=1600,"off",NULL)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-turn-off-an-alert-for-30-minutes-on-a-given-day/m-p/243671#M4548</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2020-09-29T12:08:48Z</dc:date>
    </item>
  </channel>
</rss>

