<?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 How do I  display the average processing time after the total count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47793#M11406</link>
    <description>&lt;P&gt;Fellow Splunkers, I have a chart that displays my Apache processing times as such&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Seconds     count
0           191952
1           3494
2           408
3- 5        3429
5- 10       277
10- 20      294
20- 60      95   
60-120      13   
120-300     23   
300-600     3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search command is a simple &lt;BR /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log_index" | eval LatencyRanges=case(seconds=0, "0 sec", seconds=1, "1 sec", etc., etc.) | stats count by LatencyRanges
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What can I use after this to display the Average Second for the Total count as my last field? &lt;BR /&gt; Any feedback is greatly appreciated. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2013 22:41:01 GMT</pubDate>
    <dc:creator>ten_yard_fight</dc:creator>
    <dc:date>2013-02-28T22:41:01Z</dc:date>
    <item>
      <title>How do I  display the average processing time after the total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47793#M11406</link>
      <description>&lt;P&gt;Fellow Splunkers, I have a chart that displays my Apache processing times as such&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Seconds     count
0           191952
1           3494
2           408
3- 5        3429
5- 10       277
10- 20      294
20- 60      95   
60-120      13   
120-300     23   
300-600     3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search command is a simple &lt;BR /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log_index" | eval LatencyRanges=case(seconds=0, "0 sec", seconds=1, "1 sec", etc., etc.) | stats count by LatencyRanges
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What can I use after this to display the Average Second for the Total count as my last field? &lt;BR /&gt; Any feedback is greatly appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 22:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47793#M11406</guid>
      <dc:creator>ten_yard_fight</dc:creator>
      <dc:date>2013-02-28T22:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I  display the average processing time after the total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47794#M11407</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eventstats avg(count) as avg_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2013 00:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47794#M11407</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-03-01T00:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I  display the average processing time after the total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47795#M11408</link>
      <description>&lt;P&gt;Thanks for replying. I finally got around to playing with this one. I tweaked it a little but I got the concept.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 00:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47795#M11408</guid>
      <dc:creator>ten_yard_fight</dc:creator>
      <dc:date>2013-03-07T00:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I  display the average processing time after the total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47796#M11409</link>
      <description>&lt;P&gt;for anyone interested in using a search similar to mine for getting avg response time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval seconds=spent*1.0e-6 | eventstats avg(seconds) AS Avg_Response_time_in_sec | eval Avg_Response_time_in_sec=round(Avg_Response_time_in_sec, 0) | chart count AS #Requests by Avg_Response_time_in_sec
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So it take processing time in microseconds and converts to seconds, does an average of the total count of seconds and puts into the Avg_Response_time_in_sec field, then charts it out...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-the-average-processing-time-after-the-total/m-p/47796#M11409</guid>
      <dc:creator>ten_yard_fight</dc:creator>
      <dc:date>2020-09-28T13:27:40Z</dc:date>
    </item>
  </channel>
</rss>

