# DQL

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

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

**Page:** 10

---

## [How to Aggregate (Sum) Success vs Failure Counts Totals per Time Interval in DQL](https://community.dynatrace.com/t/how-to-aggregate-sum-success-vs-failure-counts-totals-per-time-interval-in-dql/53563)

<div class="topic-metadata">

**Author:** [@Raul\_rrr](https://community.dynatrace.com/u/Raul_rrr)\
**Replies:** 5\
**Last updated:** [October 8, 2025, 1:34pm UTC](https://community.dynatrace.com/t/how-to-aggregate-sum-success-vs-failure-counts-totals-per-time-interval-in-dql/53563 "2025-10-08T13:34:43Z")

</div>

We are trying to build a metric to monitor the success vs failure rate of an API over time. Requirement: Treat all status codes between 400–599 as Failure Treat all other status codes as Success Display this in a bar/…

---

## [Retrieve Entity Names Using DQL for Accurate Query Results](https://community.dynatrace.com/t/retrieve-entity-names-using-dql-for-accurate-query-results/53626)

<div class="topic-metadata">

**Author:** [@Pablo2](https://community.dynatrace.com/u/Pablo2)\
**Replies:** 2\
**Last updated:** [October 8, 2025, 11:03am UTC](https://community.dynatrace.com/t/retrieve-entity-names-using-dql-for-accurate-query-results/53626 "2025-10-08T11:03:34Z")

</div>

I have the following DQL to retrieve entities related to a host, but I need to know the entity name and not the IDs. Is there any way to obtain them? fetch dt.entity.host | filter entity.name == ‘DAMA2021.ppcloudmgmt.i…

---

## [Format of the number in the display\_id field in dt.davis.problems](https://community.dynatrace.com/t/format-of-the-number-in-the-display-id-field-in-dt-davis-problems/53621)

<div class="topic-metadata">

**Author:** [@Vasan](https://community.dynatrace.com/u/Vasan)\
**Replies:** 1\
**Last updated:** [October 6, 2025, 10:54pm UTC](https://community.dynatrace.com/t/format-of-the-number-in-the-display-id-field-in-dt-davis-problems/53621 "2025-10-06T22:54:13Z")

</div>

I am trying to understand the format of the display\_id field that contains a value preceded by “P-” and followed by a number. Is the number random or is there some logic to it? I can see in my environment that it appears…

---

## [DPL Matching Support - How do I just get the Application value?](https://community.dynatrace.com/t/dpl-matching-support-how-do-i-just-get-the-application-value/53613)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 1\
**Last updated:** [October 5, 2025, 7:11pm UTC](https://community.dynatrace.com/t/dpl-matching-support-how-do-i-just-get-the-application-value/53613 "2025-10-05T19:11:33Z")

</div>

Hi, I’m trying to match SALESFORCE from the following output: \["Business Unit:FINANCE", "BU:FINANCE", "Application:SALESFORCE"\] I’m using this matcher below, but having trouble as it keeps giving me the "\] at the end.…

---

## [Query and Parse JSON Data Using DQL for Structured Analysis](https://community.dynatrace.com/t/query-and-parse-json-data-using-dql-for-structured-analysis/53604)

<div class="topic-metadata">

**Author:** [@ramchandgadde](https://community.dynatrace.com/u/ramchandgadde)\
**Replies:** 1\
**Last updated:** [October 2, 2025, 9:01pm UTC](https://community.dynatrace.com/t/query-and-parse-json-data-using-dql-for-structured-analysis/53604 "2025-10-02T21:01:15Z")

</div>

Could you help extracting all fields from JSON. below is my query that returns JSON. But how to extract all fields? data record(content = “\[DEBUG\]\[FILE\]\[WATCHER\] 2025-10-02 06:04:21.132 Ally UUID: s3\_ALFA\_WDFINBAL5\_INT…

---

## [Query Service Method Tags Using DQL for Detailed Insights](https://community.dynatrace.com/t/query-service-method-tags-using-dql-for-detailed-insights/48700)

<div class="topic-metadata">

**Author:** [@RPbiaggio](https://community.dynatrace.com/u/RPbiaggio)\
**Replies:** 1\
**Last updated:** [September 30, 2025, 7:57pm UTC](https://community.dynatrace.com/t/query-service-method-tags-using-dql-for-detailed-insights/48700 "2025-09-30T19:57:45Z")

</div>

Guys, I need to visualize the error rate of some requests, filtering by the tags that are registered in them. I’m not able to do the lookup correctly. The only way I found was using endpoint.name, but I have now identifi…

---

## [Is there a default fields return on DQL](https://community.dynatrace.com/t/is-there-a-default-fields-return-on-dql/46616)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 3\
**Last updated:** [September 30, 2025, 12:14am UTC](https://community.dynatrace.com/t/is-there-a-default-fields-return-on-dql/46616 "2025-09-30T00:14:13Z")

</div>

Hello, Sometimes I need to do a Fieldsadd, to get extra fields from my query. So I assume there are default fetched fields, and extra? Who can enlighten me? KR Henk

---

## [Fix Missing dt-process-availability Metrics in DQL](https://community.dynatrace.com/t/fix-missing-dt-process-availability-metrics-in-dql/47121)

<div class="topic-metadata">

**Author:** [@Sachinpai](https://community.dynatrace.com/u/Sachinpai)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 7:54pm UTC](https://community.dynatrace.com/t/fix-missing-dt-process-availability-metrics-in-dql/47121 "2025-09-29T19:54:29Z")

</div>

Metric dt.process.availability not available We are currently using Dynatrace Classic Dashboard to check the process availability % using metric “builtin:pgi.availability” for the Jboss based application but correspondi…

---

## [Lookup Entity Values Using Parsed Log Data in DQL](https://community.dynatrace.com/t/lookup-entity-values-using-parsed-log-data-in-dql/47091)

<div class="topic-metadata">

**Author:** [@zip-chanko](https://community.dynatrace.com/u/zip-chanko)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 7:42pm UTC](https://community.dynatrace.com/t/lookup-entity-values-using-parsed-log-data-in-dql/47091 "2025-09-29T19:42:30Z")

</div>

I have the content with json in logs which has a key \`client\_ip\` and trying to get the pod name which has \`internalIpAddresses\` from \`dt.entity.cloud\_application\_instance\`. So trying to lookup the IP I got from the logs …

---

## [Specify Duration Time Literals When Parsing JSON with DQL](https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739)

<div class="topic-metadata">

**Author:** [@strudeau](https://community.dynatrace.com/u/strudeau)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 3:22pm UTC](https://community.dynatrace.com/t/specify-duration-time-literals-when-parsing-json-with-dql/46739 "2025-09-29T15:22:24Z")

</div>

Hello, I am attempting to parse the following json: {"ResultCode": "Ok", "DurationMs": "450.1132", "PerformanceBucket": "250ms-500ms"} I use the following DQL in my notebook: fetch logs | parse content, "JSON{STRING:R…

---

## [Generate Application Summary for Problems Using DQL](https://community.dynatrace.com/t/generate-application-summary-for-problems-using-dql/53089)

<div class="topic-metadata">

**Author:** [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Replies:** 4\
**Last updated:** [September 29, 2025, 10:01am UTC](https://community.dynatrace.com/t/generate-application-summary-for-problems-using-dql/53089 "2025-09-29T10:01:30Z")

</div>

I am trying to extract valuable metrics that are a similar view in the application problem summary but I do not know where to extract these info from (see the screen shot) Any DQL (or typescript) or any hint how extract…

---

## [Parsing the Logs](https://community.dynatrace.com/t/parsing-the-logs/53458)

<div class="topic-metadata">

**Author:** [@Agoyals](https://community.dynatrace.com/u/Agoyals)\
**Replies:** 3\
**Last updated:** [September 24, 2025, 11:59am UTC](https://community.dynatrace.com/t/parsing-the-logs/53458 "2025-09-24T11:59:41Z")

</div>

I am bit in struggle of parsing the logs. Example log patten \<servername\>.taskmanager.\<servername\>:\<digits\>-1333b8.Status.Shuffle.Netty.UsedMemorySegments: 0 \<servername\>.taskmanager.\<servername\>:\<digits\>-1333b8.Statu…

---

## ["No Records" - update with string "pending execution"](https://community.dynatrace.com/t/no-records-update-with-string-pending-execution/53462)

<div class="topic-metadata">

**Author:** [@O11y\_Noob](https://community.dynatrace.com/u/O11y_Noob)\
**Replies:** 2\
**Last updated:** [September 23, 2025, 10:21pm UTC](https://community.dynatrace.com/t/no-records-update-with-string-pending-execution/53462 "2025-09-23T22:21:38Z")

</div>

our DQL returns the metric which is end time of a job and updated only once a day, if the job is not completed - DQL is returning no records as result , is it possible to show static value like “pending execution” instea…

---

## [Creating  response time dashboard filtering using the tags](https://community.dynatrace.com/t/creating-response-time-dashboard-filtering-using-the-tags/53260)

<div class="topic-metadata">

**Author:** [@karthikayini\_m](https://community.dynatrace.com/u/karthikayini_m)\
**Replies:** 2\
**Last updated:** [September 23, 2025, 4:37pm UTC](https://community.dynatrace.com/t/creating-response-time-dashboard-filtering-using-the-tags/53260 "2025-09-23T16:37:04Z")

</div>

Hi All, Trying to create dashboard in new dynatrace.(not classic). Chose the variables as tree and then sub variable as tall and short fetch dt.entity.service | filter iAny(startsWith(tags\[\], “tree”)) | expand tags …

---

## [CPU/Memory usage % for a service](https://community.dynatrace.com/t/cpu-memory-usage-for-a-service/53441)

<div class="topic-metadata">

**Author:** [@achoud22](https://community.dynatrace.com/u/achoud22)\
**Replies:** 1\
**Last updated:** [September 23, 2025, 10:41am UTC](https://community.dynatrace.com/t/cpu-memory-usage-for-a-service/53441 "2025-09-23T10:41:51Z")

</div>

I am trying to create a custom metric to showcase CPU/Memory usage % of a service in a namespace in a cluster . Is there any way to do that .

---

## [DQL future placeholder dates](https://community.dynatrace.com/t/dql-future-placeholder-dates/53433)

<div class="topic-metadata">

**Author:** [@loopy](https://community.dynatrace.com/u/loopy)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 4:28pm UTC](https://community.dynatrace.com/t/dql-future-placeholder-dates/53433 "2025-09-22T16:28:35Z")

</div>

Is there a way in DQL or dashboards to show the data for today and the next 7 days as 0 until we go past those days? Idea being showing each day from the Monday how many records are returned until the Sunday then the gra…

---

## [Query request count ( time series data ) using HTTP headers / attributes in Dynatrace DQL](https://community.dynatrace.com/t/query-request-count-time-series-data-using-http-headers-attributes-in-dynatrace-dql/53353)

<div class="topic-metadata">

**Author:** [@Butchi](https://community.dynatrace.com/u/Butchi)\
**Replies:** 14\
**Last updated:** [September 16, 2025, 7:38pm UTC](https://community.dynatrace.com/t/query-request-count-time-series-data-using-http-headers-attributes-in-dynatrace-dql/53353 "2025-09-16T19:38:32Z")

</div>

I have a java application with bunch of API end points and each end point has a unique identifier in the HTTP header header ( for example : sourceID as one identifier in the request header). Whats the best way to get th…

---

## [How to add other dimension column which is not used in DQL to split?](https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317)

<div class="topic-metadata">

**Author:** [@O11y\_Noob](https://community.dynatrace.com/u/O11y_Noob)\
**Replies:** 1\
**Last updated:** [September 15, 2025, 12:51pm UTC](https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317 "2025-09-15T12:51:58Z")

</div>

timeseries { count(\`unexpecteddowntime\`), value.A = avg(\`unexpecteddowntime\`) }, by: {\`site\` } | fieldsAdd arrayAvg(\`count(\\\`unexpecteddowntime\\\`)\`) | filter value.A \> 30 i am trying to alert whenever the unexpecteddo…

---

## [Is it possibly to list the request url and verification/validation text for HTTP monitors from DQL?](https://community.dynatrace.com/t/is-it-possibly-to-list-the-request-url-and-verification-validation-text-for-http-monitors-from-dql/53297)

<div class="topic-metadata">

**Author:** [@jgillotti1](https://community.dynatrace.com/u/jgillotti1)\
**Replies:** 2\
**Last updated:** [September 15, 2025, 12:48pm UTC](https://community.dynatrace.com/t/is-it-possibly-to-list-the-request-url-and-verification-validation-text-for-http-monitors-from-dql/53297 "2025-09-15T12:48:32Z")

</div>

Is it possibly to list the request url and verification/validation text for HTTP monitors from DQL? I can get the steps guid from dt.entity.http\_check but do not know how to retrieve/parse the json from step. Is this p…

---

## [Extract single line CSV data into multiple columns](https://community.dynatrace.com/t/extract-single-line-csv-data-into-multiple-columns/46939)

<div class="topic-metadata">

**Author:** [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Replies:** 3\
**Last updated:** [September 10, 2025, 8:06pm UTC](https://community.dynatrace.com/t/extract-single-line-csv-data-into-multiple-columns/46939 "2025-09-10T20:06:37Z")

</div>

Hi, I’m trying to get the data in a CSV log file split into separate columns, but I’m stuck with DQL/DPL. Any help would be super appreciated! Also, I assume I’d need a metric for each column if I want to get the value…

---

## [Create Funnels in New Dashboards Using DQL Queries](https://community.dynatrace.com/t/create-funnels-in-new-dashboards-using-dql-queries/52890)

<div class="topic-metadata">

**Author:** [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 5:52pm UTC](https://community.dynatrace.com/t/create-funnels-in-new-dashboards-using-dql-queries/52890 "2025-09-10T17:52:34Z")

</div>

Hello, Are there any recommendations on how to have funnel-like visualisations from DQL source? Typically business events now, probably user sessions soon. I’m looking for some practice close to what funnels in USQL cu…

---

## [How to filter Requests to public networks by the calling service](https://community.dynatrace.com/t/how-to-filter-requests-to-public-networks-by-the-calling-service/53154)

<div class="topic-metadata">

**Author:** [@smitty](https://community.dynatrace.com/u/smitty)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 2:35pm UTC](https://community.dynatrace.com/t/how-to-filter-requests-to-public-networks-by-the-calling-service/53154 "2025-09-10T14:35:13Z")

</div>

Using the Custom multidimensional analysis for Requests to public networks and filtering by a Request/Endpoint I’m able to view all the outbound requests from our environment. I can create a custom metric from this as w…

---

## [Create a Choropleth Map for Active Website Users in Dynatrace](https://community.dynatrace.com/t/create-a-choropleth-map-for-active-website-users-in-dynatrace/53268)

<div class="topic-metadata">

**Author:** [@Nathanieltat](https://community.dynatrace.com/u/Nathanieltat)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 6:00am UTC](https://community.dynatrace.com/t/create-a-choropleth-map-for-active-website-users-in-dynatrace/53268 "2025-09-10T06:00:21Z")

</div>

I have been trying to figure out if i can get a choropleth map for active website users separated by country of origin. I can get metrics active users but can only get it on a line graph but not separated by country. W…

---

## [DQL to get workloads based on parameter cluster and namespace](https://community.dynatrace.com/t/dql-to-get-workloads-based-on-parameter-cluster-and-namespace/53264)

<div class="topic-metadata">

**Author:** [@vchitti](https://community.dynatrace.com/u/vchitti)\
**Replies:** 2\
**Last updated:** [September 9, 2025, 8:12am UTC](https://community.dynatrace.com/t/dql-to-get-workloads-based-on-parameter-cluster-and-namespace/53264 "2025-09-09T08:12:07Z")

</div>

Hi I have created two variables Cluster: fetch dt.entity.kubernetes\_cluster | fields entity.name | sort entity.name asc Namespace: fetch dt.entity.cloud\_application\_namespace | fields id, name = entity.name // s…

---

## [Parse xml from logs](https://community.dynatrace.com/t/parse-xml-from-logs/53265)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 2\
**Last updated:** [September 9, 2025, 4:42am UTC](https://community.dynatrace.com/t/parse-xml-from-logs/53265 "2025-09-09T04:42:49Z")

</div>

Hello, i try to parse a xml, but i dont know how to doing, maybe do you have a steps, im trying with xml:xml but just extract a few lines Fecha: 2025-09-08 00:33:33 Respuesta: Casos 0 de Casos Tiempo: 0 Request: \<cas…

---

## [Filter Data by Selected Timeframe Using DQL Queries](https://community.dynatrace.com/t/filter-data-by-selected-timeframe-using-dql-queries/53188)

<div class="topic-metadata">

**Author:** [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 7:14pm UTC](https://community.dynatrace.com/t/filter-data-by-selected-timeframe-using-dql-queries/53188 "2025-09-08T19:14:01Z")

</div>

Hello, Is there any way to access the timeframe (start/end) of a DQL query within the query itself? Something like query variables. I need to evaluate a certain sequence of bizevents flows. Typically the process durati…

---

## [Timeseries remark/question](https://community.dynatrace.com/t/timeseries-remark-question/53246)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 9\
**Last updated:** [September 8, 2025, 5:48pm UTC](https://community.dynatrace.com/t/timeseries-remark-question/53246 "2025-09-08T17:48:26Z")

</div>

Good morning, The best way to explain is to show below examples, with the remark that only the first one works and does exactly what I wished for: timeseries var1 = sum(.y.z, {var2 = sum(x.yz)} | fieldsAdd var3 = (va…

---

## [retrieve detected log sources given a host group](https://community.dynatrace.com/t/retrieve-detected-log-sources-given-a-host-group/52747)

<div class="topic-metadata">

**Author:** [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Replies:** 7\
**Last updated:** [September 3, 2025, 5:36pm UTC](https://community.dynatrace.com/t/retrieve-detected-log-sources-given-a-host-group/52747 "2025-09-03T17:36:19Z")

</div>

which DQL query lets you retrieve all discovered log sources (ingested or not) for a given host group? I am able to see these log sources in logsourcestate under dt.entity.process\_group\_instance, but not able to filter …

---

## [How to filter top Davis forecast values?](https://community.dynatrace.com/t/how-to-filter-top-davis-forecast-values/46088)

<div class="topic-metadata">

**Author:** [@jegron](https://community.dynatrace.com/u/jegron)\
**Replies:** 1\
**Last updated:** [September 2, 2025, 12:59pm UTC](https://community.dynatrace.com/t/how-to-filter-top-davis-forecast-values/46088 "2025-09-02T12:59:36Z")

</div>

Hi, I would like to create a metrics timeseries and then filter out only the top dt.davis.forecast:point values. How can I do that?

---

## [Problem Direct Link](https://community.dynatrace.com/t/problem-direct-link/53184)

<div class="topic-metadata">

**Author:** [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Replies:** 5\
**Last updated:** [September 2, 2025, 9:42am UTC](https://community.dynatrace.com/t/problem-direct-link/53184 "2025-09-02T09:42:34Z")

</div>

I have the following URL which when I click on it it takes me directly to the problem https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.davis.problems/problem/-849193811239885170\_1756729427080V2 I need to fi…

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

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