Splunk Search

Count values(field) from search result

TwistTheNeil
New Member

I'm trying to use the stats function to list out values in a field
The field looks like
Name, count
A 55
B 66
C 77
I know values(field) would return
A
B
C
Is there a way to get the count of these values? (55, 66, 77) ?

Tags (1)
0 Karma

somesoni2
Revered Legend

Actually it would be great if you can post the expected output.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

stats dc(Name)

---
If this reply helps you, Karma would be appreciated.
0 Karma

somesoni2
Revered Legend

You can use mvcombine command for that.

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...