<?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 calculate peak rate of certain transactions as well as avg/min/max in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274861#M82918</link>
    <description>&lt;P&gt;That's great, there where clause does it. I added an extra bit to handle duplicates where max=Count, so as to take the min(min), max(max) etc of the duplicates before removing the dups.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument
| eval Transaction=i_tx.":".i_chn
| bucket _time span=1m
| stats count as Count, min(i_elapsed) as Min, avg(i_elapsed) as Avg, max(i_elapsed) as Max, perc95(i_elapsed) as 95th by i_tx, Transaction, _time
| eventstats max(Count) as Peak by Transaction
| where Count=Peak 
| eventstats min(Min) as Minimum, avg(Avg) as Average, max(Max) as Maximum, max(95th) as P95 by Transaction
| fields - Count, Min, Avg, Max, 95th
| dedup Transaction, Peak
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Feb 2016 23:53:31 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2016-02-08T23:53:31Z</dc:date>
    <item>
      <title>How to calculate peak rate of certain transactions as well as avg/min/max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274857#M82914</link>
      <description>&lt;P&gt;I have a log that records a transaction name, channel, and timing information, and need to calculate the maximum rate/minute for each transaction. Something along the lines of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument 
| eval Transaction=i_tx.":".i_chn
| bucket _time span=1m 
| top 1 _time showperc=false by Transaction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I also want to show the corresponding min, average, max, perc95 elapsed time for that associated minute from the i_elapsed field, something like I can get from &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument 
| eval Transaction=i_tx.":".i_chn
| stats count as Count, min(i_elapsed) as Min, avg(i_elapsed) as Avg, max(i_elapsed) as Max, perc95(i_elapsed) as 95th by Transaction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I get the min/max/avg/perc95 numbers into the table or the rate into the stats table?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 07:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274857#M82914</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2016-02-08T07:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak rate of certain transactions as well as avg/min/max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274858#M82915</link>
      <description>&lt;P&gt;Have you considered using timechart? EG: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument | eval Transaction=i_tx.":".i_chn | timechart span=1m count as tx_per_minute, min(i_elapsed) as Min, avg(i_elapsed) as Avg, max(i_elapsed) as Max, perc95(i_elapsed) as 95th by Transaction
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274858#M82915</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-08T13:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak rate of certain transactions as well as avg/min/max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274859#M82916</link>
      <description>&lt;P&gt;Yes, I have, but I can have up to 500 different Transaction/channel combinations during a 75 minute test run. That will give me 5 values for each of those 500 transactions for each of 75 minutes in the test (187,500 counters) . I am just after those 5 values for each of the peak rates achieved, so I would need 500 lines with peak rate/min and min, avg, max, p95 for the minute where that peak was reached, i.e. 2,500 in total.&lt;/P&gt;

&lt;P&gt;My test is divided into sections, where each 'source' will indicate the test phase and different transactions occur during each phase.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 21:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274859#M82916</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2016-02-08T21:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak rate of certain transactions as well as avg/min/max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274860#M82917</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument 
 | eval Transaction=i_tx.":".i_chn
 | bucket _time span=1m 
 | stats count as Count, min(i_elapsed) as Min, avg(i_elapsed) as Avg, max(i_elapsed) as Max, perc95(i_elapsed) as 95th by _time Transaction
 | eventstats max(Count) as max by Transaction | where max=Count | fields - max
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274860#M82917</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-08T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak rate of certain transactions as well as avg/min/max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274861#M82918</link>
      <description>&lt;P&gt;That's great, there where clause does it. I added an extra bit to handle duplicates where max=Count, so as to take the min(min), max(max) etc of the duplicates before removing the dups.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_load sourcetype=instrument
| eval Transaction=i_tx.":".i_chn
| bucket _time span=1m
| stats count as Count, min(i_elapsed) as Min, avg(i_elapsed) as Avg, max(i_elapsed) as Max, perc95(i_elapsed) as 95th by i_tx, Transaction, _time
| eventstats max(Count) as Peak by Transaction
| where Count=Peak 
| eventstats min(Min) as Minimum, avg(Avg) as Average, max(Max) as Maximum, max(95th) as P95 by Transaction
| fields - Count, Min, Avg, Max, 95th
| dedup Transaction, Peak
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-rate-of-certain-transactions-as-well-as/m-p/274861#M82918</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2016-02-08T23:53:31Z</dc:date>
    </item>
  </channel>
</rss>

