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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...