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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...