DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DQL filtering and grouping by Request Attributes

D_Miller
Advisor

I have a Service request that applies a Request Attribute (RA) to the Request if it has been attempted more than once (The number set in the RA will increase if attempted further).

RA.retry_count

On that request there is also a RA for a correlation_id so the repeated attempts can be grouped.

RA.Correlation_id 

Does anyone have a good example of any DQL that can allow me to filter on RA.retry_count being >= 3

 

Thanks in advance

2 REPLIES 2

anapaulasalas
Dynatrace Enthusiast
Dynatrace Enthusiast

Hello!

You could try something like this:

 

fetch spans
| filter isNotNull(request_attribute.retry_count)
|fieldsAdd request_attribute.retry_count, request_attribute.Correlation_id 
|filter request_attribute.retry_count >= 3

 

Hope this helps!!

Emm4nuel
Dynatrace Helper
Dynatrace Helper

This actually works! Thanks!

Featured Posts