Splunk Enterprise

Make a query to find out the how many times a particular api is getting called with specific time period

tathaj17
New Member

If I have corelationId then how to find out with the query that how many times a particular client/method/api is being called.

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please tell us more about the problem you are trying to solve.  Is this a Splunk API or an external API?  If it's a Splunk API, have you looked in the access logs?

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

tathaj17
New Member

I am using microservice architecture in my Spring boot project  there are multiple external apis are using.

I used to check the log from Splunk api and my query was how to check the a particular  external api how many times it's has been called from multiple external apis?

Is there any ways to find it quickly? I mean do I need to make any query on splunk? or anyother way to search and find it easily.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

that depends which kind of log events you have gotten to splunk. If/when you are getting event where this call has done then you can query those events and then just use e.g. stats (eventstats, streamstats etc.) to get the actual count of those events within wanted timeframe.

If you could send example event data, then we could help you with exact SPL query.

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...