Splunk Search

Distribution function using bin

mtatulda
New Member

I am trying to create a PDF and CDF with limited amount of buckets:

... | bucket bins=10 fs as fsBinned
| stats count(fs) as pdf by fsBinned
| sort fsBinned
| accum pdf as cdf
| eventstats max(cdf) as totalMax
| eval fsPDF = 10*pdf/totalMax
| eval fsCDF = cdf/totalMax
| table fsBinned, fsPDF, fsCDF

However, the fsBinned variable does not chage if I decrease the number of bins. The table shows that the resulting buckets are mixed together with the input fs variable, like this:

0, 0-100, 14, 15...

Is this a normal behavior or is this a bug? I am using Splunk 7.2.10

Labels (1)
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 ...