Splunk Search

How do I limit the following search of the assetIds with the 10 highest calls?

moizmmz
Path Finder
Here's my query: 

index=dcg_prod handler=CanIplay sc=200|chart count as "calls" by assetId

I want to limit this query to the assetId s with the highest calls, i want just the highest 10 (top10)

I've used the top command, but it doesn't work. Pls help!!

Tags (1)
0 Karma
1 Solution

HiroshiSatoh
Champion

How's this?

 index=dcg_prod handler=CanIplay sc=200
       [search index=dcg_prod handler=CanIplay sc=200|top assetId|table assetId]
|chart count as "calls" by assetId

View solution in original post

0 Karma

HiroshiSatoh
Champion

How's this?

 index=dcg_prod handler=CanIplay sc=200
       [search index=dcg_prod handler=CanIplay sc=200|top assetId|table assetId]
|chart count as "calls" by assetId
0 Karma

moizmmz
Path Finder

Worked like a charm 🙂 Thank you!!

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...