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 the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...