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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...