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!
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