<?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 get counts of different periods, do an avg, and define bounds in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699917#M16195</link>
    <description>&lt;P&gt;A bit more words please because it's getting a bit unclear quickly.&lt;/P&gt;&lt;P&gt;I assume that you want to search for events&lt;/P&gt;&lt;P&gt;-5m till now, -7d -5m tll -7d and so on for the last 4 week.&lt;/P&gt;&lt;P&gt;That's pretty clear.&lt;/P&gt;&lt;P&gt;But after that...&lt;/P&gt;&lt;P&gt;What is "volume"? A count of events? Sum of their size? Something else?&lt;/P&gt;&lt;P&gt;What do you mean by "define a range based on this"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 10:01:02 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-09-24T10:01:02Z</dc:date>
    <item>
      <title>How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699914#M16194</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I struggle to do the following:&lt;BR /&gt;Count the volume for last 5min from current time -7d, -14d, -21d, -28d&amp;nbsp; (basically keeping the same day of the week)&lt;/P&gt;&lt;P&gt;Do an avg and stdev of those counts,&lt;BR /&gt;Define a range based on this,&lt;BR /&gt;Get the count of the last 5 min from current time and tell when is out of the range&lt;BR /&gt;All this in a table so I can use it from Alerts&lt;/P&gt;&lt;P&gt;I read a lot of things, but couldn’t came up with something close enough so far, I’m still new with Splunk &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699914#M16194</guid>
      <dc:creator>zZeb</dc:creator>
      <dc:date>2024-09-24T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699917#M16195</link>
      <description>&lt;P&gt;A bit more words please because it's getting a bit unclear quickly.&lt;/P&gt;&lt;P&gt;I assume that you want to search for events&lt;/P&gt;&lt;P&gt;-5m till now, -7d -5m tll -7d and so on for the last 4 week.&lt;/P&gt;&lt;P&gt;That's pretty clear.&lt;/P&gt;&lt;P&gt;But after that...&lt;/P&gt;&lt;P&gt;What is "volume"? A count of events? Sum of their size? Something else?&lt;/P&gt;&lt;P&gt;What do you mean by "define a range based on this"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699917#M16195</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-24T10:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699927#M16196</link>
      <description>&lt;P&gt;Oh sorry,&lt;/P&gt;&lt;P&gt;Basically, an alert def will run every minute or so,&lt;BR /&gt;the search will count the number of events for the 4 previous same days of the week, but only the same 5’ until current time&lt;/P&gt;&lt;P&gt;So if it’s now 13h00, it’d count events in 12h55-13h00 for D-7, D-14, D-21, D-28,&lt;BR /&gt;You have like 4 values with which you can calculate an avg and stdev.&lt;/P&gt;&lt;P&gt;Based on this you can calculate and define a lowerBound and upperBound&amp;nbsp; (something like avg-stdev and avg+stdev)&lt;BR /&gt;You count events in 12h55-13h00 of today and use isOutlier to know if you’re in your defined range or not.&lt;BR /&gt;Table wise, that would be something like this I guess:&lt;BR /&gt;&lt;BR /&gt;time period D-7 | D-14 | D-21 | D-28 | avg | stdev | upperBound | lowerBound | D | isOutlier&lt;BR /&gt;&lt;BR /&gt;When possible, it also needs to be CPU friendly, there is an auto-check because they don’t like that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 11:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699927#M16196</guid>
      <dc:creator>zZeb</dc:creator>
      <dc:date>2024-09-24T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699935#M16197</link>
      <description>&lt;P&gt;Ok. I would probably go for summary indexing because tstats doesn't support multiple time ranges. Launch a count search, store the result and only process the pre-summarized counts later.&lt;/P&gt;&lt;P&gt;But the question is why would you want to spawn search each minute? That seems to be an overkill. And you might run into whole host of problems with scheduling, delays, event lag and so on. Not to mention that you're gonna be spawning many many searches throughout the day.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 12:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699935#M16197</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-24T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699938#M16198</link>
      <description>&lt;P&gt;No matter how much I challenge my management, they want (like insist strongly) to know when there is no events under the 5min, basically before one of the 20k users tell us. Depending how long the job will take, I'll adapt the each minute to 5', 10', or what looks acceptable..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/699938#M16198</guid>
      <dc:creator>zZeb</dc:creator>
      <dc:date>2024-09-24T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700430#M16204</link>
      <description>So basically your issue is know if there is some data integrations which haven't sent events event those should?&lt;BR /&gt;&lt;BR /&gt;There are several apps and examples on community how this can solved.</description>
      <pubDate>Sat, 28 Sep 2024 14:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700430#M16204</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-09-28T14:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700492#M16205</link>
      <description>&lt;P&gt;Do you have any code example based on your explanation?&amp;nbsp;&lt;BR /&gt;That would really help me&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700492#M16205</guid>
      <dc:creator>zZeb</dc:creator>
      <dc:date>2024-09-30T08:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get counts of different periods, do an avg, and define bounds</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700499#M16206</link>
      <description>&lt;P&gt;Here is one old post which is discussing this issue&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-find-computers-which-stopped-sending-logs/m-p/694544" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-find-computers-which-stopped-sending-logs/m-p/694544&lt;/A&gt;. It contains one example and several links to other resources and apps to handle this.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-counts-of-different-periods-do-an-avg-and-define/m-p/700499#M16206</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-09-30T08:55:43Z</dc:date>
    </item>
  </channel>
</rss>

