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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

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