Splunk Search

Search for number of calls by particular callers

sankarms
Explorer

Whenever someone calls my rest service, the event gets logged into the logs like so:

callerId:1324

How do I create a panel on my dashboard that calculates the total number of calls made and breaks it down by number of times called by particular id's. So in plain english it would give the following information: "Your app was called 10 times today, 5 times by 1324, 3 times by 3948, and 2 times by 1902.

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Something like this?

search for your events | top 0 callerId | appendpipe [stats sum(*) as *] | sort 0 - count

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Something like this?

search for your events | top 0 callerId | appendpipe [stats sum(*) as *] | sort 0 - count

martin_mueller
SplunkTrust
SplunkTrust

Does the search callerId return the events you need?
Do the events already have the callerId field extracted?

You'll need a yes to both in order to get results.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...