Splunk Search

How do I Add a filter to mstats?

rolabrie
Loves-to-Learn

Given a query

 

| mstats sum(ktm.lag_ms_count) as sum_count where index=ktm

 

I want to restrict the results based on another attribute like this

 

| mstats sum(ktm.lag_ms_count) as sum_count where index=ktm,ktm.lag_ms_mean > 120000

 

But this doesn't work. Possible to do this kind of filter in mstats? I've been able to do absolute filters

 

where index=ktm,cluster=app

 

But the ranged thing doesn't work

Labels (1)
Tags (2)
0 Karma

rolabrie
Loves-to-Learn

Bump. Anyone out there? This shouldn't be hard: influx and prometheus do it easily. 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...