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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...