Splunk Search

number of threads

smolcj
Builder

Hi all,
I have an eventtype called threads. how can i find the number of threads in it? suppose under eventtype threads i have
a1
a2
a11
a12
a111.. etc....
please help.. thank you for your time 🙂

Tags (1)
0 Karma
1 Solution

smolcj
Builder

search | stats dc(threads) AS count by eventtype

View solution in original post

0 Karma

smolcj
Builder

search | stats dc(threads) AS count by eventtype

0 Karma

Damien_Dallimor
Ultra Champion

I don't totally comprehend your question.

Do searches like these help ?

eventtype="threads" | stats count

or to group the count by each thread(assumes those examples above are threadID's extracted to a field named threadID)

eventtype="threads" | stats count by threadID

smolcj
Builder

Thanks Damien

0 Karma
Get Updates on the Splunk Community!

Video | Welcome Back to Smartness, Pedro

Remember Splunk Community member, Pedro Borges? If you tuned into Episode 2 of our Smartness interview series, ...

Detector Best Practices: Static Thresholds

Introduction In observability monitoring, static thresholds are used to monitor fixed, known values within ...

Expert Tips from Splunk Education, Observability in Action, Plus More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...