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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...