Splunk Search

How to count number of API calls on multiple distributed hosts?

rbachu1
Explorer

Hi Team,

I have 10 APIs, which run on two distributed hosts, and I want to know the count of API calls on each of the hosts.
So, I am looking for something like the following.

API                         Host1                              Host2
Order                       10                                 12
Product                     20                                 20

Can someone please help me with this?
Thank you so much.

0 Karma

maityayan1996
Path Finder

Use ------ | chart count(API) over API by host

It will give the count of API per host.

0 Karma

rbachu1
Explorer

APIs will be like :
case/v1/search
orders/v1/search
products/v1/search

host are like :
host-abc.com
host-def.com

so, I am looking for a query which will display volume of each API agains to each host.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That doesn't help. It's just two disjointed pieces of information. Please share the raw events (sanitized).

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please tell us more about the API data you have so we can give a good query. What do the events look like?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...