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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...