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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...