<?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 to search the average duration of REST API calls taken by each host and average elapsed CPU time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173976#M35014</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;2015-08-13 22:23:10,530 UNKNOWN_USER [WebContainer : 9] INFO  - End   : Duration= 000322                          CPU elapsed= 70.987723 - service: /AX_IServicesRESTAPI_v1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have 7 hosts and the REST API service runs on all the 7 nodes. I need to figure out the average duration of the REST API calls taken by each node and the average CPU elapsed time.&lt;/P&gt;

&lt;P&gt;How can I group by RESTAPI_V1 by host to calculate average duration and CPU elapsed?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2015 02:32:08 GMT</pubDate>
    <dc:creator>diva_thilak</dc:creator>
    <dc:date>2015-08-14T02:32:08Z</dc:date>
    <item>
      <title>How to search the average duration of REST API calls taken by each host and average elapsed CPU time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173976#M35014</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;2015-08-13 22:23:10,530 UNKNOWN_USER [WebContainer : 9] INFO  - End   : Duration= 000322                          CPU elapsed= 70.987723 - service: /AX_IServicesRESTAPI_v1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have 7 hosts and the REST API service runs on all the 7 nodes. I need to figure out the average duration of the REST API calls taken by each node and the average CPU elapsed time.&lt;/P&gt;

&lt;P&gt;How can I group by RESTAPI_V1 by host to calculate average duration and CPU elapsed?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:32:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173976#M35014</guid>
      <dc:creator>diva_thilak</dc:creator>
      <dc:date>2015-08-14T02:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average duration of REST API calls taken by each host and average elapsed CPU time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173977#M35015</link>
      <description>&lt;P&gt;Do a search for the events that contain RESTAPI and feed those results into the stats command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web *RESTAPI* | stats avg(Duration) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This assumes that the Duration field is being extracted, which it should, unless you have disabled kv extraction&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 07:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173977#M35015</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2015-08-14T07:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average duration of REST API calls taken by each host and average elapsed CPU time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173978#M35016</link>
      <description>&lt;P&gt;2015-08-13 22:23:10,530 UNKNOWN_USER [WebContainer : 9] INFO - End : Duration= 000322 CPU elapsed= 70.987723 - service: /AX_IServicesRESTAPI_v1&lt;/P&gt;

&lt;P&gt;2015-08-13 22:23:10,530 UNKNOWN_USER [WebContainer : 9] INFO - End : Duration= 000022 CPU elapsed= 75.987723 - service: /AX_IServicesRESTAPI_v2&lt;/P&gt;

&lt;P&gt;2015-08-13 22:23:10,530 UNKNOWN_USER [WebContainer : 9] INFO - End : Duration= 000002 CPU elapsed= 50.987723 - service: /AX_IServicesRESTAPI_v3&lt;/P&gt;

&lt;P&gt;Thank you Sduff, if there are multiple rest services which are set to run on multiple nodes, how can i group by rest api service names and identify the average duration per host.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173978#M35016</guid>
      <dc:creator>diva_thilak</dc:creator>
      <dc:date>2020-09-29T06:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average duration of REST API calls taken by each host and average elapsed CPU time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173979#M35017</link>
      <description>&lt;P&gt;You'll probably need to 'rex' out the field you require&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=web *RESTAPI* | rex field=_raw "service:(?&amp;lt;rest_service&amp;gt;.*)" | stats avg(Duration) by rest_service
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Aug 2015 04:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173979#M35017</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2015-08-18T04:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average duration of REST API calls taken by each host and average elapsed CPU time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173980#M35018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wanted to know how did you get this timing for each service (RESTAPI) call.&lt;BR /&gt;
Can you please explain me about this. It would be very helpful for me.&lt;/P&gt;

&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 14:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-duration-of-REST-API-calls-taken-by/m-p/173980#M35018</guid>
      <dc:creator>jaymnr7</dc:creator>
      <dc:date>2016-02-04T14:06:09Z</dc:date>
    </item>
  </channel>
</rss>

