Dashboards & Visualizations

Viewing time percentiles of method in splunk

Rus105
Engager

Hello, 
Im working with spring boot, and have the following annotation over a method:

@Timed(value = "api.rest.get-account-msgs",histogram = true,percentiles = {0.5, 0.95, 0.99})

and I want to view performance (percentiles of this method) in splunk dashboard.
After typing the following in search query: 

index=<name of my index>*
source=/opt/services_logs/splunk/<name of log file>.log
type=timer
name="api_rest_get-account-msgs"

Im getting all the results of the following method occurrence but I cannot find how to view the performance of this method over time as percentiles. Really getting desperate, would be thankful for any help! 

Labels (3)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

below will give you count by percentiles over a period of time chosen from time range picker of search.

 

index=<name of my index>*
source=/opt/services_logs/splunk/<name of log file>.log
type=timer
name="api_rest_get-account-msgs"
| rex "percentiles\s+=\s+\{(?<percentiles>[^\}]+)"
| timechart count by percentiles

 

Below will give you name and percentile in table format

 

index=<name of my index>*
source=/opt/services_logs/splunk/<name of log file>.log
type=timer
name="api_rest_get-account-msgs"
| rex "percentiles\s+=\s+\{(?<percentiles>[^\}]+)"
| table name,percentiles

 

————————————
If this helps, give a like below.
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...