Splunk Search

How to develop a table that displays top 10 counts, unique distinct counts, and total counts?

JPaule
Explorer

I have the following query to display top 10 counts, for example:

sourcetype=IIS | top 10 URL

This returns the total counts of URL hits and percentage of the top 10 URLs. How can I show the unique/distinct counts in the column next to total counts?

Tags (4)
0 Karma

ddrillic
Ultra Champion

Maybe something like -

sourcetype=IIS | stats count by URL, <sub URL field>

If you have a sub URL field, like domain for example...

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 ...