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!

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...