Splunk Search

how to rank or group similar data together ?

johnsasikumar
Path Finder

Hi all,

I have a requirement as below, When there is a name field, I want it to be ranked similar names together

Name

John
John
John
Jack
Jack
Jack
James
James
James

Similar names should be grouped as

Name Rank

John 1
John 1
John 1
Jack 2
Jack 2
Jack 2
James 3
James 3
James 3

Could some one help pls

0 Karma

woodcock
Esteemed Legend

Like this:

... | streamstats dc(Name) AS Rank
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Check out the cluster command.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...