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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...