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 (4)
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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...