Filter http logs by request duration
noahd
EMPLOYEEOP
25 days ago
Ability to in the logs UI of a project filter by request duration alongside the usual items.
0 Threads mention this feature
1 Replies
ray-chen
EMPLOYEE
25 days ago
This is now live. The following fields are supported:
totalDuration
responseTime
upstreamRqDuration
httpStatus
txBytes
rxBytes
For duration, values are in miliseconds.
Examples
# Response Time
@responseTime:>500 # Responses taking more than 500ms
@responseTime:>=1000 # Responses taking 1 second or more
@responseTime:<100 # Responses under 100ms
@responseTime:100..500 # Responses between 100-500ms
# Upstream Request Duration
@upstreamRqDuration:>2000 # Upstream responses taking more than 2 seconds
@upstreamRqDuration:<=50 # Upstream responses taking 50ms or less
@upstreamRqDuration:500..1500 # Upstream calls between 500ms-1.5s
# HTTP Status Codes
@httpStatus:>=400 # All error responses (4xx and 5xx)
@httpStatus:500..599 # All errors only
@httpStatus:>=200 # All non-1xx responses
@httpStatus:<400 # All successful responses (1xx, 2xx, 3xx)
# Bytes Transmitted (response size)
@txBytes:>1000000 # Responses larger than 1MB
@txBytes:<=1024 # Responses 1KB or less
@txBytes:1024..10240 # Responses between 1KB-10KB
# Bytes Received (request size)
@rxBytes:>5000 # Requests with body larger than 5KB
@rxBytes:<100 # Requests with minimal payload
@rxBytes:1000..50000 # Request bodies between 1KB-50KB
# Combined examples
@totalDuration:>5000 @httpStatus:>=500 # Slow requests that errored
@responseTime:>1000 @txBytes:>100000 # Slow, large responsesStatus changed to Completed ray-chen • 25 days ago