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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...