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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...