<?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: API dashboard -passed SLA/request per min/response time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740498#M240444</link>
    <description>&lt;P&gt;Thanks, and have the fields already been extracted from these event?&lt;/P&gt;&lt;P&gt;For 1, do you just want a count of these events?&lt;/P&gt;&lt;P&gt;For 2, do you just want the total response time for all the events?&lt;/P&gt;</description>
    <pubDate>Sun, 02 Mar 2025 09:16:19 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-03-02T09:16:19Z</dc:date>
    <item>
      <title>API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712759#M240396</link>
      <description>&lt;P&gt;Hi Team&lt;BR /&gt;I want to have a dashboard that show API stats&lt;BR /&gt;1.Nof request--how to get the total count for a request made based on date range selected&lt;BR /&gt;below is my splunk log for&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=* source IN (*)&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;event&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;A class="" title="" href="https://nike.splunkcloud.com/en-US/app/nike_product/search?earliest=1740085200.000&amp;amp;latest=1740692160.000&amp;amp;q=search%20index%3Dnp-papi%20%20%20%20source%20IN%20(%22%2Faws%2Flambda%2Fpdp-pc-api-data-test-cbd%22)&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;display.page.search.tab=events&amp;amp;display.general.type=events&amp;amp;sid=1740694749.31267984_D29432C7-B149-4A02-9E95-32BA950391D9#" target="_blank" rel="noopener"&gt;[-]&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;body&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;null&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;httpMethod&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;GET&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;path:/data/v1/name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;queryStringParameters&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;identifier&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;106&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;requestContext&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;authorizer&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;integrationLatency&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;principalId&lt;/SPAN&gt;:&amp;nbsp;some@example.com&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;domainName&lt;/SPAN&gt;:&amp;nbsp;domain&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;domainName&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;domain&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;resource&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;/v1/name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;msg&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;data:invoke&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.Response Time-how to get the total count for a response time&amp;nbsp; based on date range selected&lt;BR /&gt;below is the splunk log format&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;client&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;Ksame@example.com&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;domain&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;domain&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;entity&lt;/SPAN&gt;:&amp;nbsp;name&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;msg&lt;/SPAN&gt;:&amp;nbsp;re&lt;SPAN class=""&gt;sponseTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;queryParams&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;identifier&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;666&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;requestType&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;GET&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;responseTime&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;114&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;i have only above two logs in splunk how do i get below stats count&lt;BR /&gt;3.Request per min(Count of requests processed by an API service per minute.)&lt;BR /&gt;4.Passed SLA%&lt;/P&gt;&lt;P class=""&gt;(Percentage of service requests that passed service level&lt;/P&gt;&lt;P class=""&gt;agreement parameters, including response time and uptime.)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 22:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712759#M240396</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-02-27T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712763#M240397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260549"&gt;@nithys&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to look at count per minute then you should be able to add something like the following to your existing search:&lt;BR /&gt;&lt;STRONG&gt;| timechart span=1m count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regarding the SLA - Is the SLA based on the responses taking less than a certain time? If so, what is that?&amp;nbsp;&lt;BR /&gt;You can do an eval to determine if SLA is met or not&lt;BR /&gt;&lt;STRONG&gt;| eval SLA_met=IF(&lt;SPAN&gt;responseTime&lt;/SPAN&gt;&amp;gt;100,0,1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| timechart span=1 count by SLA_met&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;(1 = Is met, 0 = is not met).&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 23:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712763#M240397</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-02-27T23:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712766#M240398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks ...Let me try with above solution .Also i want to have&amp;nbsp;how to get the total count for a request made based on date range selected&amp;nbsp;&lt;SPAN&gt;below is my splunk log for&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;is this the correct way should i consider if there is anypath=queryStringParameters ,then count that as a single API request&lt;BR /&gt;index=* source IN ("") "event" | spath input=_raw output=queryStringParameters path=queryStringParameters | table queryStringParameters | stats count&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;index=* source IN (*)&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;event:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;body:&amp;nbsp;null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;httpMethod:&amp;nbsp;GET&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;path:/data/v1/name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;queryStringParameters:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;identifier:&amp;nbsp;106&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;requestContext:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;authorizer:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integrationLatency:&amp;nbsp;0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;principalId:&amp;nbsp;some@example.com&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;domainName:&amp;nbsp;domain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;domainName:&amp;nbsp;domain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;resource:&amp;nbsp;/v1/name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;msg:&amp;nbsp;data:invoke&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Feb 2025 01:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712766#M240398</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-02-28T01:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712778#M240401</link>
      <description>&lt;P&gt;Please share (anonymised) raw events for your two examples (not pretty-print formatted versions) preferably in a code block using the &amp;lt;/&amp;gt; button.&lt;/P&gt;&lt;P&gt;Please explain what your desired results would look like - for example, in requirement 2, do you want the count of the number of times the response time has been 114 over the period of time of your search?&lt;/P&gt;&lt;P&gt;These events look like they might be JSON. Have you already extracted the JSON fields during ingestion or are you working with raw, unparsed data?&lt;/P&gt;&lt;P&gt;The more information you can give, the quicker you are likely to receive a useful response.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 09:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712778#M240401</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-28T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712866#M240432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;I have raw event data in Splunk, where the message contains “data invoke.” Should this message be considered as a count of requests made by a user or writing a query to count an API request when the path matches a specific query string parameter. My goal is to display the total number of API requests made by any user on a dashboard, filtered by a selected date range. Is this the correct query to achieve that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index= source IN ("") "event" | spath input=_raw output=queryStringParameters path=queryStringParameters | table queryStringParameters | stats count&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;No of request--how to get the total count for a request made based on date range selected&lt;BR /&gt;below is my splunk log for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   event: { [-]
     body: null
     httpMethod: GET

path:/data/v1/name
     queryStringParameters: { 
       identifier: 106
     }
      requestContext: { 
       authorizer: { 
         integrationLatency: 0
         principalId: some@example.com
       }
       domainName: domain
       }
       domainName: domain
     }
     resource: /v1/name
   }
   msg: data:invoke

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;SPAN&gt;Response Time-how to get the total count for a response time&amp;nbsp; based on date range selected&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;below is the splunk log format&lt;BR /&gt;I using below query&lt;BR /&gt;&lt;/SPAN&gt;index=* source IN ("*") *responseTime* | fields responseTime | table responseTime,total | addcoltotals labelfield=total label="Total" | search total!="" | fields - total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ 
   client: same@example.com
   domain: domain
   entity: name
   msg: responseTime
   queryParams: { 
     identifier: 666
   }
   requestType: GET
   responseTime: 114
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Should i set SLA based on below formaula or should i also need to add response time&lt;BR /&gt;&amp;nbsp;passed sla =(total request -total failed request/total request)X100&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 20:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712866#M240432</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-02-28T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712870#M240433</link>
      <description>&lt;P&gt;These are formatted versions of your events, please share the raw unformatted versions of your events (in a code block just like you did with the formatted versions).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 23:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712870#M240433</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-28T23:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712871#M240434</link>
      <description>&lt;P&gt;this how i get the events&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   event: { [-]
     body: null
     httpMethod: GET
     path:/data/v1/name
     queryStringParameters: {
       identifier: 106
     }
     requestContext: {
       authorizer: {
         integrationLatency: 0
         principalId: some@example.com
       }
       domainName: domain
     }
     domainName: domain
   }
   resource: /v1/name
}
msg: data:invoke&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{ event: { [-] body: null httpMethod: GET path:/data/v1/name queryStringParameters: { identifier: 106 } requestContext: { authorizer: { integrationLatency: 0 principalId: some@example.com } domainName: domain } domainName: domain } resource: /v1/name } msg: data:invoke&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;client:&amp;nbsp;same@example.com &amp;nbsp;&amp;nbsp;&amp;nbsp;domain: domain &amp;nbsp;&amp;nbsp;&amp;nbsp;entity: name &amp;nbsp;&amp;nbsp;&amp;nbsp;msg: responseTime &amp;nbsp;&amp;nbsp;&amp;nbsp;queryParams: { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;identifier: 666 &amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&amp;nbsp;&amp;nbsp;requestType: GET &amp;nbsp;&amp;nbsp;&amp;nbsp;responseTime: 114 }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   client: same@example.com
   domain: domain
   entity: name
   msg: responseTime
   queryParams: {
     identifier: 666
   }
   requestType: GET
   responseTime: 114
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 23:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/712871#M240434</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-02-28T23:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740469#M240436</link>
      <description>&lt;P&gt;What you have shared are formatted events, not the raw unformatted data. Please share the unformatted _raw field from your events.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 22:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740469#M240436</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-01T22:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740473#M240438</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;request&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"name":"","awsRequestId":"","hostname":"","pid":8,"level":30,"event":{"resource":"/v1/","path":"/data/v1/","httpMethod":"GET","queryStringParameters":{"identifier":"10"},"body":null,"requestContext":{"requestId":"","authorizer":{"principalId":"","integrationLatency":0},"domainName":""}},"msg":"init : data :invoke","time":"","v":0} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;response&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"name":"","awsRequestId":"","hostname":"","pid":8,"level":30,"requestType":"GET","entity":"entity","client":"","domain":"","queryParams":{"identifier":"10"},"responseTime":291,"msg":"init: data :responseTime","time":"","v":0}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 23:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740473#M240438</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-03-01T23:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740498#M240444</link>
      <description>&lt;P&gt;Thanks, and have the fields already been extracted from these event?&lt;/P&gt;&lt;P&gt;For 1, do you just want a count of these events?&lt;/P&gt;&lt;P&gt;For 2, do you just want the total response time for all the events?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 09:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740498#M240444</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-02T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740509#M240445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was able to get the avg response time by identifier ..&lt;BR /&gt;Now as next step I want to set an %Passed SLA(Percentage of service requests that passed service level&lt;/P&gt;&lt;P class=""&gt;agreement parameters, including response time and uptime).How do i set the SLA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* source IN ("") *response*
| eval identifier=coalesce('queryParams.identifier',
'event.queryStringParameters.identifier')
| eval responseTime=coalesce(responseTime, null)
| where isnotnull(identifier) and isnotnull(responseTime)
| stats avg(responseTime) as avg_response_time by identifier
| eventstats avg(responseTime) as overall_avg_response_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-01 at 5.30.42 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37930i09006B3CBF0034DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-01 at 5.30.42 PM.png" alt="Screenshot 2025-03-01 at 5.30.42 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Get the totla no of request separetely by&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* source IN ("*") *data*
| eval identifier=coalesce('queryParams.identifier',
'event.queryStringParameters.identifier')
| eval msg=coalesce(msg, null)
| where isnotnull(identifier) and isnotnull(msg)
| stats count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-02 at 7.00.23 AM.png" style="width: 964px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37934i263CADD552846569/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-02 at 7.00.23 AM.png" alt="Screenshot 2025-03-02 at 7.00.23 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 15:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740509#M240445</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-03-02T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740514#M240447</link>
      <description>&lt;P&gt;Your eventstats isn't doing anything since the responseTime field is no long available after the stats command.&lt;/P&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval identifier=coalesce('queryParams.identifier',
'event.queryStringParameters.identifier')
| eval responseTime=coalesce(responseTime, null)
| where isnotnull(identifier) and isnotnull(responseTime)
| stats avg(responseTime) as avg_response_time by identifier
| eval SLA_response_time=300
| eval met_SLA=if(avg_response_time &amp;lt;= SLA_response_time, 1, 0)
| stats count sum(met_SLA) as count_within_SLA
| eval percentage_met_SLA=100 * count_within_SLA / count&lt;/LI-CODE&gt;&lt;P&gt;This assumes that your SLA has a static value of 300.&lt;/P&gt;&lt;P&gt;If you want to use a different SLA value, you need to define how that is set or calculated.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 15:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740514#M240447</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-02T15:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: API dashboard -passed SLA/request per min/response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740665#M240480</link>
      <description>&lt;P&gt;yes it worked .Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 00:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/API-dashboard-passed-SLA-request-per-min-response-time/m-p/740665#M240480</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2025-03-04T00:05:48Z</dc:date>
    </item>
  </channel>
</rss>

