<?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 find the average, min, and max values per minute for a 7 day search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177776#M51102</link>
    <description>&lt;P&gt;Try something like this. Assuming you're looking for Avg Min and Max count per min for the 7 day period.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apihits app=specificapp earliest=-7d |bucket _time span=1m | stats count by _time | stats min(count) as min max(count) as min avg(count) as avg 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Idea is to use bucket to define time-part, use stats to generate count for each min (per min count)  and then generate the stats from per min count&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2015 21:40:03 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-08-18T21:40:03Z</dc:date>
    <item>
      <title>How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177772#M51098</link>
      <description>&lt;P&gt;I'm trying to find the avg, min, and max values of a 7 day search over 1 minute spans.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apihits app=specificapp earliest=-7d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to find:&lt;BR /&gt;
 1. what is the max per minute&lt;BR /&gt;
 2. what is the avg per minute&lt;BR /&gt;
 3. what is the lowest per minute&lt;/P&gt;

&lt;P&gt;I know it uses min(field), max(field) and avg(field), but for the life of me I can't get it to work. Can someone please tell me what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177772#M51098</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-08-18T21:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177773#M51099</link>
      <description>&lt;P&gt;What have you tried so far?  We can't say what you're doing wrong without knowing what you are doing.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177773#M51099</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-18T21:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177774#M51100</link>
      <description>&lt;P&gt;index=apihits app=specificapp earliest=-7d |bucket _time span=1m|stats count as somename, avg(field) as AvgValue&lt;BR /&gt;
   min(field) as MinValue max(field) as MaxValue by somefield &lt;/P&gt;

&lt;P&gt;Since you want it by minute, the key is bucket all data in per minute.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177774#M51100</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2015-08-18T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177775#M51101</link>
      <description>&lt;P&gt;This is what I was trying to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apihits app=specificapp earliest=-7d | bucket _time span=1min | stats count AS totalCalls, avg(totalCalls) AS AvgCallPerMin, min(totalCalls) AS MinCallsPerMin, max(totalCalls) AS MaxCallsPerMin
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177775#M51101</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-08-18T21:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177776#M51102</link>
      <description>&lt;P&gt;Try something like this. Assuming you're looking for Avg Min and Max count per min for the 7 day period.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apihits app=specificapp earliest=-7d |bucket _time span=1m | stats count by _time | stats min(count) as min max(count) as min avg(count) as avg 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Idea is to use bucket to define time-part, use stats to generate count for each min (per min count)  and then generate the stats from per min count&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177776#M51102</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-18T21:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177777#M51103</link>
      <description>&lt;P&gt;Of course, that exactly what I left out, count by _time. Thanks for the help. My brain is just burnt for today.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177777#M51103</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2015-08-18T21:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177778#M51104</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;And if I want to do so on a 7 day timechart (the max, min and avg value, for each day of the last 7 days)&lt;BR /&gt;
How do I modify this request please ?&lt;/P&gt;

&lt;P&gt;Moreover, the above solution (the first one) gives me a chart with only two columns :&lt;BR /&gt;
max column&lt;BR /&gt;
avg column&lt;BR /&gt;
... but min is on absciss axis ans is not shown as a dedicated column.&lt;/P&gt;

&lt;P&gt;I have to hover my mouse onto one of the columns to see the min value (or look in the table below)&lt;/P&gt;

&lt;P&gt;Any idea ?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 09:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/177778#M51104</guid>
      <dc:creator>zebu14</dc:creator>
      <dc:date>2016-12-05T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the average, min, and max values per minute for a 7 day search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/650298#M224805</link>
      <description>&lt;P&gt;My use case is to find the highest traffic per minute. Is this possible to find the time as well to identify when the spike in traffic happened ?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 21:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-average-min-and-max-values-per-minute-for-a-7/m-p/650298#M224805</guid>
      <dc:creator>RemyaT</dc:creator>
      <dc:date>2023-07-12T21:51:23Z</dc:date>
    </item>
  </channel>
</rss>

