Deployment Architecture

How to auto-range with a descending percent manner

wait4amigo
New Member

For example, I want my data is ranged as:

Value Percent
Larger than 0 100%
Larger than 5 95%
Larger than 10 91%
...
Larger than 85 15%
Larger than 90 8%
...

Since the range will be divided to many spans, I don't want to create span manually (through rangemap or case), instead I want to use "bucket span=" to auto-divide the range, not sure if we can achieve this or not...

Tags (2)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi wait4amigo,

you can use bucket Value span=5 which will set Value into a discrete set. The resulting values for Value will look like this 0-5 or 5-10 but it should work.

hope this helps ...

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi wait4amigo,

you can use bucket Value span=5 which will set Value into a discrete set. The resulting values for Value will look like this 0-5 or 5-10 but it should work.

hope this helps ...

cheers, MuS

MuS
SplunkTrust
SplunkTrust

Well, you asked for auto-divide range and this is done with bucket.
The "0-5, 0-10, 0-15..." or "0-100, 0-95, 0-90..." examples could be solved with rangemap, but you have to assign the ranges manually.
The "larger as.." examples could be solved with eval but again it must be defined manually or at least with some fancy math magic.

0 Karma

wait4amigo
New Member

Thanks for your answer, but my question is not only for "discrete set", I want the resulting values to be "0-5, 0-10, 0-15..." or "0-100, 0-95, 0-90..."

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...