# DQL

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

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

**Page:** 9

---

## [Retrieve All Metric Dimensions in Grail Using DQL](https://community.dynatrace.com/t/retrieve-all-metric-dimensions-in-grail-using-dql/53187)

<div class="topic-metadata">

**Author:** [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Replies:** 2\
**Last updated:** [November 13, 2025, 2:57pm UTC](https://community.dynatrace.com/t/retrieve-all-metric-dimensions-in-grail-using-dql/53187 "2025-11-13T14:57:42Z")

</div>

Basically, I’m looking for something synonymous to the “describe” command, but for metrics. Does anything like that currently exist? Yes, in DQL you get the auto-complete pop-ups when you type “by:” in the “timeseries”…

---

## [Is it possible to multiply 2 arrays](https://community.dynatrace.com/t/is-it-possible-to-multiply-2-arrays/54075)

<div class="topic-metadata">

**Author:** [@AndersB](https://community.dynatrace.com/u/AndersB)\
**Replies:** 4\
**Last updated:** [November 13, 2025, 2:11pm UTC](https://community.dynatrace.com/t/is-it-possible-to-multiply-2-arrays/54075 "2025-11-13T14:11:45Z")

</div>

I‘m trying to build a timeseries which can be used to trigger an alert if too many emails are bouncing. I’m able to create both a bounce rate timeseries, and also a timeseries with number of mails delivered – based on 1…

---

## [Convert Spans to Metrics in OpenPipeline Using DQL](https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050)

<div class="topic-metadata">

**Author:** [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Replies:** 1\
**Last updated:** [November 11, 2025, 5:16pm UTC](https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050 "2025-11-11T17:16:47Z")

</div>

Use Case: cut metrics from spans over a longer period of time. Today spans are only stored for 10 days by default. I want to extract metrics from span attribute data over a longer period of time. Has anyone managed to …

---

## [Rounding errors in DQL query](https://community.dynatrace.com/t/rounding-errors-in-dql-query/54044)

<div class="topic-metadata">

**Author:** [@rachel6842135](https://community.dynatrace.com/u/rachel6842135)\
**Replies:** 2\
**Last updated:** [November 11, 2025, 3:11pm UTC](https://community.dynatrace.com/t/rounding-errors-in-dql-query/54044 "2025-11-11T15:11:18Z")

</div>

I am trying to configure a Dashboard tile using DQL. I am able to pull the required data and run various calculations, however for the final stage I am trying to calculate an error rate, using total errors vs total numbe…

---

## [Do histograms support custom bin sizes (besides a single range)?](https://community.dynatrace.com/t/do-histograms-support-custom-bin-sizes-besides-a-single-range/54040)

<div class="topic-metadata">

**Author:** [@mdouds](https://community.dynatrace.com/u/mdouds)\
**Replies:** 2\
**Last updated:** [November 11, 2025, 2:56pm UTC](https://community.dynatrace.com/t/do-histograms-support-custom-bin-sizes-besides-a-single-range/54040 "2025-11-11T14:56:57Z")

</div>

For example, if I want a dashboard histogram chart for span durations, I can use the below dql to show bins of 100ms each: fetch spans | summarize count(), by:{range(duration, 100ms)} Instead, can we create custom buck…

---

## [Detect OS Service Status Changes Using DQL Queries](https://community.dynatrace.com/t/detect-os-service-status-changes-using-dql-queries/54038)

<div class="topic-metadata">

**Author:** [@Fer\_henrique](https://community.dynatrace.com/u/Fer_henrique)\
**Replies:** 1\
**Last updated:** [November 11, 2025, 12:41pm UTC](https://community.dynatrace.com/t/detect-os-service-status-changes-using-dql-queries/54038 "2025-11-11T12:41:18Z")

</div>

Hello community, I am building a DQL query based on OS Services to monitor processes on a host. My goal is to identify when, within a 30‑minute interval, a service changes its status from running to stopped. Here is th…

---

## [Appending makeTimeSeries](https://community.dynatrace.com/t/appending-maketimeseries/48636)

<div class="topic-metadata">

**Author:** [@wmisenhe](https://community.dynatrace.com/u/wmisenhe)\
**Replies:** 5\
**Last updated:** [November 7, 2025, 4:58pm UTC](https://community.dynatrace.com/t/appending-maketimeseries/48636 "2025-11-07T16:58:08Z")

</div>

I have a query used to show open/resolved problems with a makeTimeseries. I would like to have a comparison of the same information, just a week ago, for trending reasons. Would there be a way to do this? Switching to ti…

---

## [Fix DQL makeTimeseries Error: Parameter Must Be an Expression](https://community.dynatrace.com/t/fix-dql-maketimeseries-error-parameter-must-be-an-expression/54017)

<div class="topic-metadata">

**Author:** [@anujjain504](https://community.dynatrace.com/u/anujjain504)\
**Replies:** 1\
**Last updated:** [November 7, 2025, 2:34pm UTC](https://community.dynatrace.com/t/fix-dql-maketimeseries-error-parameter-must-be-an-expression/54017 "2025-11-07T14:34:13Z")

</div>

SPL: |chart values(Total) as Total by date\_hour,TimeDiffFinal DQL | makeTimeseries Total=collectDistinct(Total), by:{date\_hour, TimeDiffFinal}, time:LatestTime So, basically i have converted values into collectDistin…

---

## [How to write multiple fetch spans query](https://community.dynatrace.com/t/how-to-write-multiple-fetch-spans-query/54007)

<div class="topic-metadata">

**Author:** [@rishirajk](https://community.dynatrace.com/u/rishirajk)\
**Replies:** 2\
**Last updated:** [November 7, 2025, 1:35pm UTC](https://community.dynatrace.com/t/how-to-write-multiple-fetch-spans-query/54007 "2025-11-07T13:35:46Z")

</div>

Hi , I wish to know how to write multiple fetch spans queries plus i want to use them to perform basic arithmetic operations . I have tried using join statement however I am missing something . fetch spans, scanLimitG…

---

## [Service request counts per host server](https://community.dynatrace.com/t/service-request-counts-per-host-server/52414)

<div class="topic-metadata">

**Author:** [@CharlesPerez](https://community.dynatrace.com/u/CharlesPerez)\
**Replies:** 15\
**Last updated:** [November 6, 2025, 3:26am UTC](https://community.dynatrace.com/t/service-request-counts-per-host-server/52414 "2025-11-06T03:26:34Z")

</div>

Hi All, I would like to know if it is possible to split the service request counts of a multi-hosted service, per host server. For example: AppServer 1, AppServer 2, AppServer 3, AppServer4, with Service1 running on al…

---

## [Merging multiple columns into one in DQL](https://community.dynatrace.com/t/merging-multiple-columns-into-one-in-dql/53985)

<div class="topic-metadata">

**Author:** [@AK](https://community.dynatrace.com/u/AK)\
**Replies:** 3\
**Last updated:** [November 5, 2025, 3:01pm UTC](https://community.dynatrace.com/t/merging-multiple-columns-into-one-in-dql/53985 "2025-11-05T15:01:18Z")

</div>

Hello Community, I need help with DQL, I have a set of columns with names column1.1.1.0, column1.1.1.1, column1.1.1.2, column1.1.1.3. These columns do not always contain values, but one of them always will. For exampl…

---

## [Where to get Services Outgoing Web Service Calls Details](https://community.dynatrace.com/t/where-to-get-services-outgoing-web-service-calls-details/53585)

<div class="topic-metadata">

**Author:** [@smitty](https://community.dynatrace.com/u/smitty)\
**Replies:** 3\
**Last updated:** [November 3, 2025, 4:11pm UTC](https://community.dynatrace.com/t/where-to-get-services-outgoing-web-service-calls-details/53585 "2025-11-03T16:11:22Z")

</div>

Hi everyone, I’m new to Dynatrace and could use some help understanding how to get the right metrics for our setup. We have a Java WebLogic Web Application that makes calls through an AWS ALB to a backend WebLogic serv…

---

## [Log metrics vs "log to business events"](https://community.dynatrace.com/t/log-metrics-vs-log-to-business-events/53922)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [October 30, 2025, 10:48am UTC](https://community.dynatrace.com/t/log-metrics-vs-log-to-business-events/53922 "2025-10-30T10:48:22Z")

</div>

Hello, Except for the name, what is the difference. Only a different bucket? Or in other words when do you use what (-; KR Henk

---

## [Query Daily License Consumption per Host Using DQL](https://community.dynatrace.com/t/query-daily-license-consumption-per-host-using-dql/53932)

<div class="topic-metadata">

**Author:** [@NicoleMT](https://community.dynatrace.com/u/NicoleMT)\
**Replies:** 2\
**Last updated:** [October 30, 2025, 10:11am UTC](https://community.dynatrace.com/t/query-daily-license-consumption-per-host-using-dql/53932 "2025-10-30T10:11:32Z")

</div>

Hello, could you help me with a DQL query to get the daily license consumption of my hosts? I would like the results to be detailed per host. If there is another way to view this information directly in Dynatrace, I woul…

---

## [Query Logs from Remote Clients Using DQL for Better Visibility](https://community.dynatrace.com/t/query-logs-from-remote-clients-using-dql-for-better-visibility/53926)

<div class="topic-metadata">

**Author:** [@SimeonP](https://community.dynatrace.com/u/SimeonP)\
**Replies:** 1\
**Last updated:** [October 29, 2025, 5:27pm UTC](https://community.dynatrace.com/t/query-logs-from-remote-clients-using-dql-for-better-visibility/53926 "2025-10-29T17:27:24Z")

</div>

Hi, I am trying to query the Dynatrace logs my company creates, from a command line utility written in either Python or C#. It seems that the access method - platform vs API token - changed over time, the old examples …

---

## [Fix Invalid Time-Series Errors in DQL Queries](https://community.dynatrace.com/t/fix-invalid-time-series-errors-in-dql-queries/53874)

<div class="topic-metadata">

**Author:** [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Replies:** 4\
**Last updated:** [October 29, 2025, 2:24pm UTC](https://community.dynatrace.com/t/fix-invalid-time-series-errors-in-dql-queries/53874 "2025-10-29T14:24:22Z")

</div>

I’m trying to alert on unhealthy argoCD applications in Dynatrace. My method for doing this is setting up a label on the argoCD application to be something like dynatrace\_alert: true, then having an alert in Dynatrace th…

---

## [New riddle for the enthusiasts, who can give me the answer?](https://community.dynatrace.com/t/new-riddle-for-the-enthusiasts-who-can-give-me-the-answer/53878)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 4\
**Last updated:** [October 29, 2025, 2:22pm UTC](https://community.dynatrace.com/t/new-riddle-for-the-enthusiasts-who-can-give-me-the-answer/53878 "2025-10-29T14:22:08Z")

</div>

Hello I found more, but this is a simple example Why gives: fetch logs | sort content | dedup content | summarize count() A different value then: fetch logs | dedup content | sort content | summarize count() KR Hen…

---

## [Process Group Name](https://community.dynatrace.com/t/process-group-name/42887)

<div class="topic-metadata">

**Author:** [@errolclements](https://community.dynatrace.com/u/errolclements)\
**Replies:** 5\
**Last updated:** [October 24, 2025, 2:16pm UTC](https://community.dynatrace.com/t/process-group-name/42887 "2025-10-24T14:16:28Z")

</div>

I am trying to put together a notebook to see network load by process, I am only seeing an option for seeing the process group and it is only giving it by ID. I would like to see the actual process group entity name on m…

---

## [Timeseries dt.availability.state split by hours - business non business](https://community.dynatrace.com/t/timeseries-dt-availability-state-split-by-hours-business-non-business/46644)

<div class="topic-metadata">

**Author:** [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Replies:** 3\
**Last updated:** [October 23, 2025, 4:53pm UTC](https://community.dynatrace.com/t/timeseries-dt-availability-state-split-by-hours-business-non-business/46644 "2025-10-23T16:53:43Z")

</div>

Hi All I am successfully able to calculate an overall monthly Availability % which aligns to the value show in Host Classic for availability for a given host Here is the DQL: timeseries {AvailabilityStateUP=sum(dt.hos…

---

## [Nice to know about using arraySize in DQL](https://community.dynatrace.com/t/nice-to-know-about-using-arraysize-in-dql/53833)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 9:34am UTC](https://community.dynatrace.com/t/nice-to-know-about-using-arraysize-in-dql/53833 "2025-10-23T09:34:08Z")

</div>

Hello, May be I am mistaking but when in timeseries using a statements like: | fieldsAdd newField = arraySize(’ ') It looks like there is a hard limit of 1500. DQL changes the interval to keep below this numbe…

---

## [Monitor Oracle Database Tablespace Usage with DQL](https://community.dynatrace.com/t/monitor-oracle-database-tablespace-usage-with-dql/53805)

<div class="topic-metadata">

**Author:** [@Gopalr](https://community.dynatrace.com/u/Gopalr)\
**Replies:** 2\
**Last updated:** [October 22, 2025, 2:54pm UTC](https://community.dynatrace.com/t/monitor-oracle-database-tablespace-usage-with-dql/53805 "2025-10-22T14:54:16Z")

</div>

if any one having DQL query for oracle database tablespace total size, used size and free space. Please help me to share.

---

## [Can we get custom metrics data in Grail and run DQL over it??](https://community.dynatrace.com/t/can-we-get-custom-metrics-data-in-grail-and-run-dql-over-it/43899)

<div class="topic-metadata">

**Author:** [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Replies:** 3\
**Last updated:** [October 17, 2025, 1:48pm UTC](https://community.dynatrace.com/t/can-we-get-custom-metrics-data-in-grail-and-run-dql-over-it/43899 "2025-10-17T13:48:52Z")

</div>

Hi , We have created custom metrics and planning to use them in SRG using DQL. Is it possible to fetch custom metric data from Grail using DQL and do the SRG evaluation??? Regards, Heramb Sawant

---

## [Rebuilding the Problems tile from Dashboards classic to the new Dashboards app](https://community.dynatrace.com/t/rebuilding-the-problems-tile-from-dashboards-classic-to-the-new-dashboards-app/53668)

<div class="topic-metadata">

**Author:** [@georgiv77](https://community.dynatrace.com/u/georgiv77)\
**Replies:** 4\
**Last updated:** [October 16, 2025, 12:24pm UTC](https://community.dynatrace.com/t/rebuilding-the-problems-tile-from-dashboards-classic-to-the-new-dashboards-app/53668 "2025-10-16T12:24:27Z")

</div>

Hello everyone, I am facing a really annoying issue when I started rebuilding some of our Dashboards from Managed in the app in SaaS. I am fairly new with DQL, however I find it strange that something this simple is ove…

---

## [Use DQL to Migrate SLOs in Dynatrace](https://community.dynatrace.com/t/use-dql-to-migrate-slos-in-dynatrace/53725)

<div class="topic-metadata">

**Author:** [@SrikanthSamraj](https://community.dynatrace.com/u/SrikanthSamraj)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 5:37am UTC](https://community.dynatrace.com/t/use-dql-to-migrate-slos-in-dynatrace/53725 "2025-10-16T05:37:57Z")

</div>

Hi, Is there are an automatic migration tool that takes care of migrating SLO’s in the classic to SLO app?

---

## [DQL - How do I enable the ability to have the record open in 'Hosts'?](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 6\
**Last updated:** [October 15, 2025, 10:13pm UTC](https://community.dynatrace.com/t/dql-how-do-i-enable-the-ability-to-have-the-record-open-in-hosts/51629 "2025-10-15T22:13:48Z")

</div>

Hi, I have made a DQL query containing disk metrics. Under the ‘Host Name’ column, if I navigate to either ‘Open Record With’ or ‘Open Value with’, nothing shows up. What I intend to have, is it will open up in ‘Hosts’ o…

---

## [Extracting key-value pairs from log string into arrays](https://community.dynatrace.com/t/extracting-key-value-pairs-from-log-string-into-arrays/53714)

<div class="topic-metadata">

**Author:** [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Replies:** 3\
**Last updated:** [October 15, 2025, 2:05pm UTC](https://community.dynatrace.com/t/extracting-key-value-pairs-from-log-string-into-arrays/53714 "2025-10-15T14:05:26Z")

</div>

Hello Team, I have a log entry in the following format: This is test logs ~AB:4~CD:3~CD:6~EF:5~AB:3. From this log, I’d like to extract the values of each field and store them in arrays for example: AB = \[4, 3\], CD …

---

## [Query User Action Table via API Using DQL for Detailed Insights](https://community.dynatrace.com/t/query-user-action-table-via-api-using-dql-for-detailed-insights/53730)

<div class="topic-metadata">

**Author:** [@ababu](https://community.dynatrace.com/u/ababu)\
**Replies:** 3\
**Last updated:** [October 15, 2025, 12:41pm UTC](https://community.dynatrace.com/t/query-user-action-table-via-api-using-dql-for-detailed-insights/53730 "2025-10-15T12:41:14Z")

</div>

Hello all, I am trying to query useraction table SELECTTop (usersession.userId,1000)FROM useractionWHERE application = myapp’AND usersession.userId IS NOT NULLAND usersession.userId IN (‘User EID : 781949’,‘User EID : 1…

---

## [Create Cost Views Using DQL for Resource and Budget Analysis](https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704)

<div class="topic-metadata">

**Author:** [@Mateusbmo1](https://community.dynatrace.com/u/Mateusbmo1)\
**Replies:** 1\
**Last updated:** [October 13, 2025, 7:20pm UTC](https://community.dynatrace.com/t/create-cost-views-using-dql-for-resource-and-budget-analysis/53704 "2025-10-13T19:20:11Z")

</div>

Hello, everyone Everything good? I need some help. I’m creating a view in Dynatrace to obtain the cost per service we currently use in our tenants. However, I wasn’t successful in creating the view for “HTTP Monitor” …

---

## [Grail code help](https://community.dynatrace.com/t/grail-code-help/53707)

<div class="topic-metadata">

**Author:** [@derija](https://community.dynatrace.com/u/derija)\
**Replies:** 4\
**Last updated:** [October 13, 2025, 7:01pm UTC](https://community.dynatrace.com/t/grail-code-help/53707 "2025-10-13T19:01:23Z")

</div>

Here is my code related to area trying to get the percentage of 5xx. I seem to have all the data here but the simple math is not working out…Any help? | summarize { dur\_msAvg=avg(duration), dur\_msMax=max(duration), dur\_…

---

## [Fetch Dashboard Name by ID Using DQL Queries](https://community.dynatrace.com/t/fetch-dashboard-name-by-id-using-dql-queries/53681)

<div class="topic-metadata">

**Author:** [@chandu](https://community.dynatrace.com/u/chandu)\
**Replies:** 4\
**Last updated:** [October 10, 2025, 6:46am UTC](https://community.dynatrace.com/t/fetch-dashboard-name-by-id-using-dql-queries/53681 "2025-10-10T06:46:17Z")

</div>

I am attempting to obtain the amount of data scanned by DQLs at dashboard level. Could someone assist me in obtaining the dashboard name as a dimension, in addition to the dashboard ID? I have attached the DQL. Basicall…

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

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