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!

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering. Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...