Splunk Search

get the unique count from the list of numbers

harshal_chakran
Builder

Hi,
I want to get the unique count of the numbers available in the log.

for e,g,

I have used the list query to get the list of numbers at the output from my log:

Number

12

13

24

12

24

44

I wanted the one more column to get count of how many times the specific no. appears in the log .

i.e.

Number-----Times

12-----2

13-----1

24-----2

44-----1

Please Help.

Tags (3)
0 Karma

emaccaferri
Communicator

Hi,
Something like

stats count(Numbers) as Times by Numbers 

gets you what you were looking for?

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...