Splunk Search

Restrict results by count > 30?

jmgilpin
New Member

This is my query:

index=mtickets MovieRating=R CustomerAge<17 | stats count by MovieName

Can I restrict the results to those events where the sum(count) > 30 by MovieName?

Tags (1)
0 Karma

dkeck
Influencer

HI,

did you try to add | where count>=30 ?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@jmgilpin

Are you looking for this?

index=mtickets MovieRating=R CustomerAge<17 | stats count by MovieName  | where count>30 
0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...