<?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 do I properly configure schedule search/cron/alert times? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-properly-configure-schedule-search-cron-alert-times/m-p/572701#M199607</link>
    <description>&lt;P&gt;Based on &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/Alert/AlertSchedulingBestPractices" target="_blank" rel="noopener"&gt;Alert Scheduling Best Practices&lt;/A&gt;&amp;nbsp; it is recommended to use a time window that matches up with the cron window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Both the search time range and the alert schedule span one hour, so there are no event data overlaps or gaps."&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 16:26:49 GMT</pubDate>
    <dc:creator>jackjack</dc:creator>
    <dc:date>2021-10-27T16:26:49Z</dc:date>
    <item>
      <title>How do I properly configure schedule search/cron/alert times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-properly-configure-schedule-search-cron-alert-times/m-p/572340#M199472</link>
      <description>&lt;P&gt;This question is based on a comment from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;on this post:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Why-are-real-time-searches-not-running-and-getting-error-quot/m-p/281407" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Why-are-real-time-searches-not-running-and-getting-error-quot/m-p/281407&lt;/A&gt;&amp;nbsp;in which the alert equation provided is as follows:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Schedule it to cover a span of&amp;nbsp;&lt;/SPAN&gt;X&lt;SPAN&gt;&amp;nbsp;and run it every&amp;nbsp;&lt;/SPAN&gt;X/2&lt;SPAN&gt;. This covers the case where events at the end of span&amp;nbsp;&lt;/SPAN&gt;t&lt;SPAN&gt;&amp;nbsp;an the beginning of&amp;nbsp;&lt;/SPAN&gt;t+1&lt;SPAN&gt;&amp;nbsp;would just miss triggering in those windows but will hit in the next alert run. Then make&amp;nbsp;&lt;/SPAN&gt;X&lt;SPAN&gt;&amp;nbsp;as large as you can stomach."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I do not fully understand this so I am hoping someone can help me out here.&lt;/P&gt;&lt;P&gt;Let's say I have an alert running every 5 mins. By that equation I should search -10m to now. But isn't that going to also significantly overlap with the prior run? Why not search -6m to now, for example?&lt;/P&gt;&lt;P&gt;How do span sizes affect things? Here is an alert I have running every 5 mins. I did notice the search itself picks up the current span and the prior span so I have been wondering how to optimize this properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(cpu_metric.pctIdle) as Idle WHERE index="itsi_im_metrics" AND host="*" span=5m by host
| eval cpu_utilization=round(100 - Idle,2)
| where cpu_utilization &amp;gt; 90
| stats list(host) as host_list list(cpu_utilization) as avg_cpu_utilization&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-properly-configure-schedule-search-cron-alert-times/m-p/572340#M199472</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-25T21:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I properly configure schedule search/cron/alert times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-properly-configure-schedule-search-cron-alert-times/m-p/572701#M199607</link>
      <description>&lt;P&gt;Based on &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/Alert/AlertSchedulingBestPractices" target="_blank" rel="noopener"&gt;Alert Scheduling Best Practices&lt;/A&gt;&amp;nbsp; it is recommended to use a time window that matches up with the cron window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Both the search time range and the alert schedule span one hour, so there are no event data overlaps or gaps."&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 16:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-properly-configure-schedule-search-cron-alert-times/m-p/572701#M199607</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-27T16:26:49Z</dc:date>
    </item>
  </channel>
</rss>

