Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a Metric from a value other than DQL Matcher

DynaMight Guru
DynaMight Guru

Hello Community,

I need to create a metric from a value using the countDistinct function and to save that value over time, the DQL query is the following:

fetch logs
| FILTER matchesValue(, "onboarding-service") AND matchesPhrase(content, "\"result\":\"ok\",\"step\":\"cvu\"") AND matchesPhrase(content, "triggering next step with state machine")
| summarize countDistinct(, alias: CvuCreadoPorCliente

 but metric extraction only supports

any other idea to do this?



The true delight is in the finding out rather than in the knowing.


any update please for this or any summarization in log processing (some example etc)?

Dynatrace Mentor
Dynatrace Mentor

I can imagine some possible solutions (or rather workarounds)....
What is the cardinality of How many of them are active in the same moment (e.g. in 1 minute)? What is the desired time resolution for this metric (does it have to be 1 minute or maybe 1h is good enough?)

if you are thinking about recreating timestamps based on interval and timespan it is too crazy to be used for dynamic dashboards

Not thinking about it at all....

But answering your question regarding examples for summarization in log processing:

or if you use OpenPipeline already:


 My question was toward: how we can use supported summarizations (sum or count) to get data with reduced volume enough but still detailed enough to calculate countDistinct

Featured Posts