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.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...