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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...