# DQL

**URL:** https://community.dynatrace.com/c/platform/dql/83.md?page=7

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

**Page:** 8

---

## [Calculate Percentile Time-Series by Request Attribute Using Dynatrace DQL](https://community.dynatrace.com/t/calculate-percentile-time-series-by-request-attribute-using-dynatrace-dql/53879)

<div class="topic-metadata">

**Author:** [@MychellSantos1](https://community.dynatrace.com/u/MychellSantos1)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 10:01am UTC](https://community.dynatrace.com/t/calculate-percentile-time-series-by-request-attribute-using-dynatrace-dql/53879 "2025-12-17T10:01:15Z")

</div>

I have the following DQL query that calculates the p50 response time per service: timeseries p50 = percentile(dt.service.request.response\_time, 50, default:0), interval:10m, nonempty:true, by: { dt.request\_attribute\_Key…

---

## [Display zero instead of no results](https://community.dynatrace.com/t/display-zero-instead-of-no-results/54408)

<div class="topic-metadata">

**Author:** [@nc1](https://community.dynatrace.com/u/nc1)\
**Replies:** 2\
**Last updated:** [December 16, 2025, 3:26pm UTC](https://community.dynatrace.com/t/display-zero-instead-of-no-results/54408 "2025-12-16T15:26:33Z")

</div>

Hi, I’m trying to create a dashboard tile that will show the number of certificates getting close to expiry. I have a DQL query that runs successfully but when there aren’t any certificates in the certificate lifecycle…

---

## [Looking for DQL to discover maintenance window settings](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199)

<div class="topic-metadata">

**Author:** [@rseibert1](https://community.dynatrace.com/u/rseibert1)\
**Replies:** 2\
**Last updated:** [December 10, 2025, 9:30am UTC](https://community.dynatrace.com/t/looking-for-dql-to-discover-maintenance-window-settings/54199 "2025-12-10T09:30:11Z")

</div>

Not seeing an ability to query DQL for the maintenance windows that are currently active, besides which entities the window effects. We currently have a workflow that creates new windows but does not activate them (user …

---

## [Entity Selector with Open Telemetry Metrics](https://community.dynatrace.com/t/entity-selector-with-open-telemetry-metrics/54347)

<div class="topic-metadata">

**Author:** [@prabalr](https://community.dynatrace.com/u/prabalr)\
**Replies:** 1\
**Last updated:** [December 10, 2025, 7:16am UTC](https://community.dynatrace.com/t/entity-selector-with-open-telemetry-metrics/54347 "2025-12-10T07:16:32Z")

</div>

Hello All, I am using the Dynatrace Data Explorer (and not DQL) to evaluate this expression bdc.fos.lcm.dataproduct.status.count.gauge:filter(eq(“status”, “PROVISIONING”)):splitBy(region, environment) + bdc.fos.lcm.d…

---

## [Create an MTTD Tile in Dynatrace Dashboard Using DQL](https://community.dynatrace.com/t/create-an-mttd-tile-in-dynatrace-dashboard-using-dql/53565)

<div class="topic-metadata">

**Author:** [@sarfarazx01a](https://community.dynatrace.com/u/sarfarazx01a)\
**Replies:** 3\
**Last updated:** [December 9, 2025, 8:02am UTC](https://community.dynatrace.com/t/create-an-mttd-tile-in-dynatrace-dashboard-using-dql/53565 "2025-12-09T08:02:10Z")

</div>

Hi All, I’m working on a tile for Mean Time To Detect (MTTD) to detect the problem when it occurs first. I wrote a DQL query, but I think the query is not giving the correct results. Can anyone please assist me on this. …

---

## [how to get a metric that show the duration of a transaction](https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 1\
**Last updated:** [December 8, 2025, 3:18pm UTC](https://community.dynatrace.com/t/how-to-get-a-metric-that-show-the-duration-of-a-transaction/54301 "2025-12-08T15:18:41Z")

</div>

i have a log, by example , i want to create a maketimeseries that show the fluctuation of Duration fields on time , please could you help me Transaction Start End Duration 1aa 2025-12-04 13:00:56.023 2025-12-04 …

---

## [DQL interval - Filtering working hours](https://community.dynatrace.com/t/dql-interval-filtering-working-hours/54316)

<div class="topic-metadata">

**Author:** [@helton\_harada](https://community.dynatrace.com/u/helton_harada)\
**Replies:** 3\
**Last updated:** [December 8, 2025, 12:58pm UTC](https://community.dynatrace.com/t/dql-interval-filtering-working-hours/54316 "2025-12-08T12:58:56Z")

</div>

In DQL, how to filter only working hours in a timeseries? For example: requests count from 8h to 18h (desconsidering 19h to 7h)

---

## [cost of the “Browser Monitor or Clickpath” capacity in a dashboard](https://community.dynatrace.com/t/cost-of-the-browser-monitor-or-clickpath-capacity-in-a-dashboard/54298)

<div class="topic-metadata">

**Author:** [@atehard](https://community.dynatrace.com/u/atehard)\
**Replies:** 2\
**Last updated:** [December 8, 2025, 11:40am UTC](https://community.dynatrace.com/t/cost-of-the-browser-monitor-or-clickpath-capacity-in-a-dashboard/54298 "2025-12-08T11:40:36Z")

</div>

Hi, I want to display the monthly cost of the “Browser Monitor or Clickpath” capacity in a dashboard. I can’t find any elements in dt.system.events as I can for other capacities. builtin:billing.synthetic.actions.usage…

---

## [How to plot a graph comparing successful API hits today vs. same day last week?](https://community.dynatrace.com/t/how-to-plot-a-graph-comparing-successful-api-hits-today-vs-same-day-last-week/54323)

<div class="topic-metadata">

**Author:** [@subair-appakkan](https://community.dynatrace.com/u/subair-appakkan)\
**Replies:** 2\
**Last updated:** [December 8, 2025, 8:08am UTC](https://community.dynatrace.com/t/how-to-plot-a-graph-comparing-successful-api-hits-today-vs-same-day-last-week/54323 "2025-12-08T08:08:36Z")

</div>

I want to create a time-series chart in Dynatrace that shows the number of successful API hits for today and compares it to the same day last week (aligned by time of day). I currently have a query that gives me the tot…

---

## [DQL filtering and grouping by Request Attributes](https://community.dynatrace.com/t/dql-filtering-and-grouping-by-request-attributes/53872)

<div class="topic-metadata">

**Author:** [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Replies:** 2\
**Last updated:** [December 3, 2025, 7:06pm UTC](https://community.dynatrace.com/t/dql-filtering-and-grouping-by-request-attributes/53872 "2025-12-03T19:06:14Z")

</div>

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 …

---

## [When Synthetic and RUM metrics will be available via DQL?](https://community.dynatrace.com/t/when-synthetic-and-rum-metrics-will-be-available-via-dql/41516)

<div class="topic-metadata">

**Author:** [@alter](https://community.dynatrace.com/u/alter)\
**Replies:** 9\
**Last updated:** [November 28, 2025, 9:16pm UTC](https://community.dynatrace.com/t/when-synthetic-and-rum-metrics-will-be-available-via-dql/41516 "2025-11-28T21:16:18Z")

</div>

We migrated to Grail and discovered that Synthetic and RUM metrics are still not available there, DQL can’t be used to work with these. Various posts in May / June indicated that some metrics were already in testing for…

---

## [Calculate Sum of MSG Content Using DQL Queries](https://community.dynatrace.com/t/calculate-sum-of-msg-content-using-dql-queries/54236)

<div class="topic-metadata">

**Author:** [@Vikas\_g1997](https://community.dynatrace.com/u/Vikas_g1997)\
**Replies:** 1\
**Last updated:** [November 28, 2025, 3:23pm UTC](https://community.dynatrace.com/t/calculate-sum-of-msg-content-using-dql-queries/54236 "2025-11-28T15:23:59Z")

</div>

Hi Team, We are trying to display the number of logs that contain a specific message and service name. Example: Message: instantiating container sampler process decorator Service Name: timor-fulfilment-service Below…

---

## [Parse JSON Data Using DQL for Advanced Querying](https://community.dynatrace.com/t/parse-json-data-using-dql-for-advanced-querying/54204)

<div class="topic-metadata">

**Author:** [@yeyelka5](https://community.dynatrace.com/u/yeyelka5)\
**Replies:** 1\
**Last updated:** [November 27, 2025, 9:19pm UTC](https://community.dynatrace.com/t/parse-json-data-using-dql-for-advanced-querying/54204 "2025-11-27T21:19:01Z")

</div>

Could you help me parse this log? }, "logger" : "\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*", "message" : "Detalle error respuesta API, nit real \*\*\*\*\*\*\*\*02464,fecha inicial 2025-11-21 , fecha final 2025-11-23 página 0 . Datos cuenta: \[\*\*\*\*\*\*\*…

---

## [Format and Phrase Content Effectively Using DQL](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216)

<div class="topic-metadata">

**Author:** [@Vikas\_g1997](https://community.dynatrace.com/u/Vikas_g1997)\
**Replies:** 2\
**Last updated:** [November 27, 2025, 8:54pm UTC](https://community.dynatrace.com/t/format-and-phrase-content-effectively-using-dql/54216 "2025-11-27T20:54:06Z")

</div>

Hi Team, Could you please help me parse the following log content to extract these fields: “level”, “message”:“%msg”, “transactionId”, “requestId”, “referer”, “exception” Log Content: \[26/Nov/2025:23:55:59 +0650\] c.h…

---

## [Add the interval time to a timeseries array](https://community.dynatrace.com/t/add-the-interval-time-to-a-timeseries-array/43411)

<div class="topic-metadata">

**Author:** [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Replies:** 2\
**Last updated:** [November 26, 2025, 2:48pm UTC](https://community.dynatrace.com/t/add-the-interval-time-to-a-timeseries-array/43411 "2025-11-26T14:48:10Z")

</div>

Hi, I’ve came across the following requirement: Customer wants to display in a table the different values of a metric (let’s say CPU), but also show the time for each metric. We know that the following will create an a…

---

## [Counting Problems by ManagementZone](https://community.dynatrace.com/t/counting-problems-by-managementzone/54174)

<div class="topic-metadata">

**Author:** [@PVThach](https://community.dynatrace.com/u/PVThach)\
**Replies:** 2\
**Last updated:** [November 25, 2025, 2:24pm UTC](https://community.dynatrace.com/t/counting-problems-by-managementzone/54174 "2025-11-25T14:24:12Z")

</div>

I am able to get total Hosts, Services, Process Group, Custom Device, etcs by ManagementZone (MZ). I am stuck trying to get total number problems associated by MZ (affected\_entity\_ids, and root\_cause\_entity\_id). Here i…

---

## [How to get the differnce betweent two timestamp](https://community.dynatrace.com/t/how-to-get-the-differnce-betweent-two-timestamp/54190)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 3\
**Last updated:** [November 25, 2025, 1:42am UTC](https://community.dynatrace.com/t/how-to-get-the-differnce-betweent-two-timestamp/54190 "2025-11-25T01:42:33Z")

</div>

Hello i have this code | fieldsAdd FechaTs = toTimestamp(Fecha) | summarize FechaInicial = min(FechaTs), FechaFinal = max(FechaTs), by: { Identificador } | fieldsAdd DiffMs = toLong(FechaFinal - FechaInicial), Di…

---

## [How to Create a Dashboard Listing JavaScript Errors in My Application](https://community.dynatrace.com/t/how-to-create-a-dashboard-listing-javascript-errors-in-my-application/53169)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 10:42am UTC](https://community.dynatrace.com/t/how-to-create-a-dashboard-listing-javascript-errors-in-my-application/53169 "2025-11-21T10:42:24Z")

</div>

Is there a way to get a list of all JavaScript errors from my applications? I want to create a dashboard with that information. I already have a list of all 400 and 500 errors from my web applications, but I don’t know h…

---

## [Filter Metrics by Entity Segments Using DQL for Precise Analysis](https://community.dynatrace.com/t/filter-metrics-by-entity-segments-using-dql-for-precise-analysis/54134)

<div class="topic-metadata">

**Author:** [@tarjei\_statkraf](https://community.dynatrace.com/u/tarjei_statkraf)\
**Replies:** 2\
**Last updated:** [November 20, 2025, 1:01pm UTC](https://community.dynatrace.com/t/filter-metrics-by-entity-segments-using-dql-for-precise-analysis/54134 "2025-11-20T13:01:47Z")

</div>

Hi! I would like to create a segment, preferrably for all entities and metrics with a specific tag. I have tried multiple variants now but I am unable to find anything. Any suggestions? I am trying to duplicate the f…

---

## [Best Way to Convert Date Strings to Timestamps in Dynatrace DQL?](https://community.dynatrace.com/t/best-way-to-convert-date-strings-to-timestamps-in-dynatrace-dql/54148)

<div class="topic-metadata">

**Author:** [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Replies:** 1\
**Last updated:** [November 20, 2025, 7:07am UTC](https://community.dynatrace.com/t/best-way-to-convert-date-strings-to-timestamps-in-dynatrace-dql/54148 "2025-11-20T07:07:40Z")

</div>

Hello Team , I have a field in my logs that contains the date and time, but the field type is a string. Is there a way to convert this field into a timestamp? I tried the totimestamp function, but it isn’t working. The …

---

## [Combine makeTimeseries with Summarize in DQL for Advanced Analysis](https://community.dynatrace.com/t/combine-maketimeseries-with-summarize-in-dql-for-advanced-analysis/53984)

<div class="topic-metadata">

**Author:** [@Joao1](https://community.dynatrace.com/u/Joao1)\
**Replies:** 20\
**Last updated:** [November 19, 2025, 6:09pm UTC](https://community.dynatrace.com/t/combine-maketimeseries-with-summarize-in-dql-for-advanced-analysis/53984 "2025-11-19T18:09:35Z")

</div>

We had a requirement: To alert when a certain event ID in the Application Log didn’t occur in a time window of 2 hours. Since metric events have a limit of 60 minutes in its violating window, we talked internally and t…

---

## [DQL timeseries filter by list of services](https://community.dynatrace.com/t/dql-timeseries-filter-by-list-of-services/54124)

<div class="topic-metadata">

**Author:** [@PVThach](https://community.dynatrace.com/u/PVThach)\
**Replies:** 4\
**Last updated:** [November 19, 2025, 5:10pm UTC](https://community.dynatrace.com/t/dql-timeseries-filter-by-list-of-services/54124 "2025-11-19T17:10:09Z")

</div>

I am trying to create a dashboard of external services health. I am able to get list of 20 external services with this DQL, which I am thinking to use a variable input to the dashboard. fetch dt.entity.service | fiel…

---

## [DQL - Classic metric "billing.full\_stack\_monitoring.usage\_per\_host"](https://community.dynatrace.com/t/dql-classic-metric-billing-full-stack-monitoring-usage-per-host/54117)

<div class="topic-metadata">

**Author:** [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Replies:** 3\
**Last updated:** [November 19, 2025, 4:52pm UTC](https://community.dynatrace.com/t/dql-classic-metric-billing-full-stack-monitoring-usage-per-host/54117 "2025-11-19T16:52:34Z")

</div>

Hi, I would like to use this classic metric in new dashboard: builtin:billing.full\_stack\_monitoring.usage\_per\_host:splitBy("dt.entity.host") I have just not seen an equivalent in Grail. Which is equivalent to that met…

---

## [Use DQL Equivalent of Putty Grep Command for Data Filtering](https://community.dynatrace.com/t/use-dql-equivalent-of-putty-grep-command-for-data-filtering/54135)

<div class="topic-metadata">

**Author:** [@apanoobee](https://community.dynatrace.com/u/apanoobee)\
**Replies:** 2\
**Last updated:** [November 19, 2025, 3:01pm UTC](https://community.dynatrace.com/t/use-dql-equivalent-of-putty-grep-command-for-data-filtering/54135 "2025-11-19T15:01:27Z")

</div>

I am trying to translate this string to DQL and failing miserably. Can anyone help? grep -i “exception” /data/this/will/be/the/folder/location/\*.log | sort | uniq -c | sort -nr | head -n 10 Basically, anything that has…

---

## [Retrieve Entity IDs, Names, and Hosts Using DQL Queries](https://community.dynatrace.com/t/retrieve-entity-ids-names-and-hosts-using-dql-queries/54121)

<div class="topic-metadata">

**Author:** [@dwclogic](https://community.dynatrace.com/u/dwclogic)\
**Replies:** 2\
**Last updated:** [November 18, 2025, 11:05pm UTC](https://community.dynatrace.com/t/retrieve-entity-ids-names-and-hosts-using-dql-queries/54121 "2025-11-18T23:05:49Z")

</div>

I really thought this would be a breeze, but it’s proving to be a Very difficult list to generate. I was hoping to use in a Notebook or Dashboard

---

## [Extract multiple values from XML logs where field names may vary](https://community.dynatrace.com/t/extract-multiple-values-from-xml-logs-where-field-names-may-vary/54016)

<div class="topic-metadata">

**Author:** [@Kajao](https://community.dynatrace.com/u/Kajao)\
**Replies:** 1\
**Last updated:** [November 18, 2025, 10:39pm UTC](https://community.dynatrace.com/t/extract-multiple-values-from-xml-logs-where-field-names-may-vary/54016 "2025-11-18T22:39:53Z")

</div>

I have XML-based logs from an API integration that look like this (simplified example): 2025-11-03 09:00:01,445 lLv="INFO" \[\<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\> \<soapenv:Header\> …

---

## [What's the equivalent Grail Metric Key for builtin:tech.generic.count](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914)

<div class="topic-metadata">

**Author:** [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Replies:** 3\
**Last updated:** [November 18, 2025, 1:45pm UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914 "2025-11-18T13:45:17Z")

</div>

It’s great that so many metrics are now in Grail, but there are still some classic metric keys that I don’t see equivalent Grail metric keys for in the docs. I don’t see the builtin:tech.generic.count classic key mentio…

---

## [Calculate Expiration Dates Using DQL for Accurate Tracking](https://community.dynatrace.com/t/calculate-expiration-dates-using-dql-for-accurate-tracking/54094)

<div class="topic-metadata">

**Author:** [@orchidee](https://community.dynatrace.com/u/orchidee)\
**Replies:** 1\
**Last updated:** [November 17, 2025, 10:25am UTC](https://community.dynatrace.com/t/calculate-expiration-dates-using-dql-for-accurate-tracking/54094 "2025-11-17T10:25:19Z")

</div>

I want to have a DQL query to calculate expiry date for a creation date to be expired in 90 days. However, the date value is raw, e.g. 2025-02-10T20:45:00.000+0000. I tried using a simple calculation like TokenExpiryDat…

---

## [Query Outgoing Business Events Using DQL for Complete Insights](https://community.dynatrace.com/t/query-outgoing-business-events-using-dql-for-complete-insights/54076)

<div class="topic-metadata">

**Author:** [@TT](https://community.dynatrace.com/u/TT)\
**Replies:** 12\
**Last updated:** [November 16, 2025, 10:02pm UTC](https://community.dynatrace.com/t/query-outgoing-business-events-using-dql-for-complete-insights/54076 "2025-11-16T22:02:52Z")

</div>

I have defined an Outgoing Business event that sending SOAP/XML requests to external service Event Trigger Request - Path contains “MyExternalService” Event meta data Event Provider Data Source - Request Path Ev…

---

## [Duration unit in timeseries](https://community.dynatrace.com/t/duration-unit-in-timeseries/54082)

<div class="topic-metadata">

**Author:** [@mgreene](https://community.dynatrace.com/u/mgreene)\
**Replies:** 2\
**Last updated:** [November 14, 2025, 12:11pm UTC](https://community.dynatrace.com/t/duration-unit-in-timeseries/54082 "2025-11-14T12:11:54Z")

</div>

Hi, I’m hoping I’m missing something simple here, when I run this query I’m using duration() to get a queue time duration, in table it outputs as seconds with the correct type of duration and I can display it as a line g…

[Previous page](https://community.dynatrace.com/c/platform/dql/83.md?page=6)

[Next page](https://community.dynatrace.com/c/platform/dql/83.md?page=8)
