Knowledge Management

Portion of customers meeting threshold

fikristar
Explorer

Hi Splunk Experts,

I am very new to Splunk and need some help to resolve my problem.

I have a dataset that comprises many fields with key fields are timestamp, user, region, location, delay.
I need to divide delay into two bands; one band is for users meeting <500 ms threshold and and another band for those above 500 ms.
I would like to create two outputs: a table and a bar chart that shows me:

  1. Number of users (from total population) that meets 500 ms threshold by region and location
  2. Percentage of users (from total population) that meets 500 ms threshold by region and location
  3. What delay is met for each region and location for 90 % of users (90 percentile)?

Many thanks for help..

Tags (1)
0 Karma

DMohn
Motivator

This should give you the desired results:

<your_base_search> | stats count(eval(delay<500)) as users_below_500, count(*) as total_users, perc90(delay) as 90percentile by region, location | eval users_below_500_percentage=round(users_below_500/total*100,2) | table region location users_below_500 users_below_500_percentage 90percentile
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 ...