This is my current query that i have in azure logs:
let numberOfBuckets = 24;
let interval = toscalar(requests | where url matches regex "courses.*"
| summarize interval = (max(timestamp)-min(timestamp)) / numberOfBuckets
| project floor(interval, 1m));
requests | where url matches regex "courses.*"
| summarize count() by url
It doesn’t quite work and I’ve tried a lot of different ways to do this
like this…
let under400_course = requests | where url matches regex "/courses.*" | where duration < 400 | count;
let total_req_course = requests | where url matches regex "/courses.*" | count;
print under400_apt_SLI = toscalar(under400_course) * 100/toscalar(total_req_course);
just as a query to get information…
how do I actually get each response time for every connection in the last 24 hours for this endpoint?
2
Answers
This works... took a bit but I got it!
I think the query is simpler for this request. Have you tried this?
The query
timestamp > ago(24h)
will filter all requests in the last 24 hours.And the response time for request is already presented in
requests
table.You can refer to Kusto guideline by MS here: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/