Splunk Search

How to find the counting based on number of values

Ashishanand
New Member

i used the following command
index=ABC
| stats values(L) AS USER

i need the output like below
user usercount
Ramesh 54
Somesh 12
Kamlesh 27

Tags (1)
0 Karma

HiroshiSatoh
Champion

Try this!

index=ABC
| stats count AS usercount by L
| rename L as user 
0 Karma
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

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

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...