# DQL

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

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

**Page:** 11

---

## [Parse the "Account Name:" value from the log results](https://community.dynatrace.com/t/parse-the-account-name-value-from-the-log-results/53106)

<div class="topic-metadata">

**Author:** [@sharjeelb](https://community.dynatrace.com/u/sharjeelb)\
**Replies:** 3\
**Last updated:** [August 29, 2025, 6:23pm UTC](https://community.dynatrace.com/t/parse-the-account-name-value-from-the-log-results/53106 "2025-08-29T18:23:43Z")

</div>

Log content: "A user account was locked out. Subject:Security ID: S-1-5-18Account Name: ABCASD$Account Domain: ABCLogon ID: 0x3E7Account That Was Locked Out:Security ID: S-1-5-21-436374069-1592454029Account Name: …

---

## [Dashboard - service IDs instead of tag](https://community.dynatrace.com/t/dashboard-service-ids-instead-of-tag/53103)

<div class="topic-metadata">

**Author:** [@sshinde\_24](https://community.dynatrace.com/u/sshinde_24)\
**Replies:** 4\
**Last updated:** [August 28, 2025, 10:52am UTC](https://community.dynatrace.com/t/dashboard-service-ids-instead-of-tag/53103 "2025-08-28T10:52:09Z")

</div>

Hi, I want to use service IDs instead of tag, help replace tag(\\“”,$MyServices,“\\”) with ID. timeseries count = sum(dt.service.request.count), by: { endpoint.name }, filter: { endpoint.name in\[fetch dt.entity.service…

---

## [Timeseries of service request count sum by host](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108)

<div class="topic-metadata">

**Author:** [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Replies:** 7\
**Last updated:** [August 27, 2025, 12:48pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108 "2025-08-27T12:48:34Z")

</div>

I would like to have a timeseries that includes the sum of total requests count by host, very similar to the post below, but w/o the service name, and the count summed up by hosts (i will pull in hosts from a mgmtzone va…

---

## [Group by a tag on a process group](https://community.dynatrace.com/t/group-by-a-tag-on-a-process-group/53105)

<div class="topic-metadata">

**Author:** [@Fluffydoom](https://community.dynatrace.com/u/Fluffydoom)\
**Replies:** 1\
**Last updated:** [August 26, 2025, 3:38pm UTC](https://community.dynatrace.com/t/group-by-a-tag-on-a-process-group/53105 "2025-08-26T15:38:39Z")

</div>

I have some services that together make up different CloudFoundry apps. I’d like to aggregate different statistics like cpu usage and memory at the application level on a single dashboard. I have a query that mostly wor…

---

## [variable setting drop down - show service name but pick service ID?](https://community.dynatrace.com/t/variable-setting-drop-down-show-service-name-but-pick-service-id/53094)

<div class="topic-metadata">

**Author:** [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Replies:** 4\
**Last updated:** [August 26, 2025, 12:29pm UTC](https://community.dynatrace.com/t/variable-setting-drop-down-show-service-name-but-pick-service-id/53094 "2025-08-26T12:29:24Z")

</div>

when creating the dropdown pick for selecting a value for services using the following DQL fetch dt.entity.service | expand managementZones | filter in(managementZones, $ManagementZone) or in($ManagementZone, “All”) |…

---

## [Help me parse or replace](https://community.dynatrace.com/t/help-me-parse-or-replace/53095)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 2\
**Last updated:** [August 25, 2025, 8:33pm UTC](https://community.dynatrace.com/t/help-me-parse-or-replace/53095 "2025-08-25T20:33:50Z")

</div>

hello i have this data : “\\Microsoft\\Windows\\IPAM\\ServiceMonitoring” i want to delete de "\\ at the start and " and the end, but i don´t know how to do it, maybe could you help me

---

## [Create Custom Alerts for Low Hourly Counts Using DQL](https://community.dynatrace.com/t/create-custom-alerts-for-low-hourly-counts-using-dql/53022)

<div class="topic-metadata">

**Author:** [@SakshiSachdeva](https://community.dynatrace.com/u/SakshiSachdeva)\
**Replies:** 3\
**Last updated:** [August 22, 2025, 4:47pm UTC](https://community.dynatrace.com/t/create-custom-alerts-for-low-hourly-counts-using-dql/53022 "2025-08-22T16:47:02Z")

</div>

Hi All, I have below DQL query for which I need to setup alerting only if the count per hour is less than 1 from 6am to 11pm CST. Problem is- if the count is zero that hour is not getting captured because of null values…

---

## [Timeseries Using Field Values From Ingested Logs](https://community.dynatrace.com/t/timeseries-using-field-values-from-ingested-logs/53050)

<div class="topic-metadata">

**Author:** [@victor\_correa](https://community.dynatrace.com/u/victor_correa)\
**Replies:** 7\
**Last updated:** [August 21, 2025, 12:35pm UTC](https://community.dynatrace.com/t/timeseries-using-field-values-from-ingested-logs/53050 "2025-08-21T12:35:19Z")

</div>

Hi all, My organization used to be pretty Splunk heavy in the past, but we’re slow shifting our Log Aggregation/Interrogation initiatives to Dynatrace. I am far more versed in SPL that I am in DQL, so I was hoping to g…

---

## [Escaping \* wildcard in a DQL Metrics Dashbaord](https://community.dynatrace.com/t/escaping-wildcard-in-a-dql-metrics-dashbaord/53030)

<div class="topic-metadata">

**Author:** [@Fluffydoom](https://community.dynatrace.com/u/Fluffydoom)\
**Replies:** 2\
**Last updated:** [August 20, 2025, 4:40pm UTC](https://community.dynatrace.com/t/escaping-wildcard-in-a-dql-metrics-dashbaord/53030 "2025-08-20T16:40:28Z")

</div>

I can’t seem to escape \* on this metric? if I use \\ it tells me There isn’t an escape sequence like \`\\\*\`. If you want to use a backslash, use \`\\\\\` instead of \`\\\`.

---

## [DQL for disks with wasted space](https://community.dynatrace.com/t/dql-for-disks-with-wasted-space/53041)

<div class="topic-metadata">

**Author:** [@LouisCypher](https://community.dynatrace.com/u/LouisCypher)\
**Replies:** 1\
**Last updated:** [August 20, 2025, 4:21pm UTC](https://community.dynatrace.com/t/dql-for-disks-with-wasted-space/53041 "2025-08-20T16:21:07Z")

</div>

Hello, could you help me with dql to generate a table with the following columns : host, disk, disk total size and disk usage% (or disk available) order by disk total size desc, top n records . Thx!

---

## [Expand Time-Series in DQL Using Dimension Values](https://community.dynatrace.com/t/expand-time-series-in-dql-using-dimension-values/53025)

<div class="topic-metadata">

**Author:** [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Replies:** 2\
**Last updated:** [August 20, 2025, 7:41am UTC](https://community.dynatrace.com/t/expand-time-series-in-dql-using-dimension-values/53025 "2025-08-20T07:41:32Z")

</div>

Hi Folks, I am just learning DQL… How can I expand this timeseries with a new column including the stdout.message dimension value? Thanks in advance. Best regards, János

---

## [DQL through API](https://community.dynatrace.com/t/dql-through-api/52655)

<div class="topic-metadata">

**Author:** [@jmonroy](https://community.dynatrace.com/u/jmonroy)\
**Replies:** 6\
**Last updated:** [August 20, 2025, 6:43am UTC](https://community.dynatrace.com/t/dql-through-api/52655 "2025-08-20T06:43:58Z")

</div>

Hello, Dynatrace Community! I am trying to execute the following DQL (Dynatrace Query Language) query to retrieve user session data via the Dynatrace API: sqlCopiarselect \* FROM usersession WHERE osFamily=“Linux” and b…

---

## [Create a Dynatrace problem using log data everytime it reaches 10 hits in 24h](https://community.dynatrace.com/t/create-a-dynatrace-problem-using-log-data-everytime-it-reaches-10-hits-in-24h/52916)

<div class="topic-metadata">

**Author:** [@Puche](https://community.dynatrace.com/u/Puche)\
**Replies:** 13\
**Last updated:** [August 19, 2025, 11:03am UTC](https://community.dynatrace.com/t/create-a-dynatrace-problem-using-log-data-everytime-it-reaches-10-hits-in-24h/52916 "2025-08-19T11:03:31Z")

</div>

Hello, community!! We need to create a problem everytime a log on Grail value is \>= to setup number. We have been able to create the graphical representation in DQL: fetch logs, from: -24h, scanLimitGBytes:1, samplingR…

---

## [Use Of Regex In DQL](https://community.dynatrace.com/t/use-of-regex-in-dql/52998)

<div class="topic-metadata">

**Author:** [@abhay-ramekar](https://community.dynatrace.com/u/abhay-ramekar)\
**Replies:** 1\
**Last updated:** [August 18, 2025, 4:31pm UTC](https://community.dynatrace.com/t/use-of-regex-in-dql/52998 "2025-08-18T16:31:57Z")

</div>

Hello All, I would like to use regex in dql, please guide me on this. Below is my use case - If I want to use this below regex in DQL tp create alert or dashboard how can I achieve it. 1. | rex field=\_raw ““PONumber(…

---

## [Unable to create timeseries](https://community.dynatrace.com/t/unable-to-create-timeseries/52959)

<div class="topic-metadata">

**Author:** [@2181](https://community.dynatrace.com/u/2181)\
**Replies:** 3\
**Last updated:** [August 18, 2025, 9:41am UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959 "2025-08-18T09:41:46Z")

</div>

Hi Community, I want to create a Davis rule that will let me monitor the number of EC2 instances created in a specific Autoscaling group in a time window. I can get the number by counting the entity ids, but this produc…

---

## [What is the difference between loglevel and status?](https://community.dynatrace.com/t/what-is-the-difference-between-loglevel-and-status/52988)

<div class="topic-metadata">

**Author:** [@deni](https://community.dynatrace.com/u/deni)\
**Replies:** 1\
**Last updated:** [August 17, 2025, 10:43pm UTC](https://community.dynatrace.com/t/what-is-the-difference-between-loglevel-and-status/52988 "2025-08-17T22:43:40Z")

</div>

Hi, I tried the following (in Playground) and don’t see any difference: Thanks, Regards, Deni

---

## [How to convert array to String](https://community.dynatrace.com/t/how-to-convert-array-to-string/52986)

<div class="topic-metadata">

**Author:** [@deni](https://community.dynatrace.com/u/deni)\
**Replies:** 2\
**Last updated:** [August 17, 2025, 6:54pm UTC](https://community.dynatrace.com/t/how-to-convert-array-to-string/52986 "2025-08-17T18:54:41Z")

</div>

Hi, From one of the tasks of the DQL course in university: Data Types Starting with the below DQL Query, what data type are the following fields: related\_entity\_ids dt.davis.is\_duplicate event.start Afterwards, modi…

---

## [Rename column name dynamically using variable](https://community.dynatrace.com/t/rename-column-name-dynamically-using-variable/52960)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 1\
**Last updated:** [August 15, 2025, 8:21pm UTC](https://community.dynatrace.com/t/rename-column-name-dynamically-using-variable/52960 "2025-08-15T20:21:54Z")

</div>

Is there a way to rename a field dynamically ? I am creating a comparison dashboard, and need to show the column like column\_prod, column\_cap. But the environment is a variable and chosen by user. I am not able to rename…

---

## [Rename result of a DQL](https://community.dynatrace.com/t/rename-result-of-a-dql/51193)

<div class="topic-metadata">

**Author:** [@Etienne1](https://community.dynatrace.com/u/Etienne1)\
**Replies:** 6\
**Last updated:** [August 14, 2025, 6:07pm UTC](https://community.dynatrace.com/t/rename-result-of-a-dql/51193 "2025-08-14T18:07:33Z")

</div>

Hello, Is it possible to rename the result of a DQL query? I would like to display SQL instead of ‘SP00’ for example

---

## [Fetch start\_time and end\_time\_new from Log content](https://community.dynatrace.com/t/fetch-start-time-and-end-time-new-from-log-content/52945)

<div class="topic-metadata">

**Author:** [@Gopi-10](https://community.dynatrace.com/u/Gopi-10)\
**Replies:** 1\
**Last updated:** [August 14, 2025, 1:15pm UTC](https://community.dynatrace.com/t/fetch-start-time-and-end-time-new-from-log-content/52945 "2025-08-14T13:15:15Z")

</div>

LOG Content: 25/08/13 11:23:51 INFO log\_msg for Job status in nprod: Appended latest task for job\_id 1234: {‘job\_id’: ‘1234’, ‘run\_id’: ‘321’, ‘task\_key’: ‘GRR’, ‘start\_time\_new’: ‘Aug 13, 2025, 10:00 AM’, ‘end\_time\_ne…

---

## [How to monitor CPU usage by container in DQL?](https://community.dynatrace.com/t/how-to-monitor-cpu-usage-by-container-in-dql/52929)

<div class="topic-metadata">

**Author:** [@jmarbaix](https://community.dynatrace.com/u/jmarbaix)\
**Replies:** 4\
**Last updated:** [August 14, 2025, 3:11am UTC](https://community.dynatrace.com/t/how-to-monitor-cpu-usage-by-container-in-dql/52929 "2025-08-14T03:11:40Z")

</div>

Using the following DQL, I can get the names of containers in a container group: fetch dt.entity.container\_group\_instance | filter id == "CONTAINER\_GROUP\_INSTANCE-XXXXXXXXXX" | fieldsAdd containerNames | expand containe…

---

## [How to join two timeseries in a single DQL to map/alias an GUID to Readable Name](https://community.dynatrace.com/t/how-to-join-two-timeseries-in-a-single-dql-to-map-alias-an-guid-to-readable-name/52932)

<div class="topic-metadata">

**Author:** [@Raul\_rrr](https://community.dynatrace.com/u/Raul_rrr)\
**Replies:** 1\
**Last updated:** [August 13, 2025, 1:52pm UTC](https://community.dynatrace.com/t/how-to-join-two-timeseries-in-a-single-dql-to-map-alias-an-guid-to-readable-name/52932 "2025-08-13T13:52:31Z")

</div>

I have created a dashboard to monitor multiple MuleSoft API metrics ( Response Time, Endpoint Usage, Request Count). Each tile contains respective DQL query that includes the dimension \`request\_attribute.Client-Id\` in GU…

---

## [Need DQL Query to get failure rate by service instance or process group instance](https://community.dynatrace.com/t/need-dql-query-to-get-failure-rate-by-service-instance-or-process-group-instance/52858)

<div class="topic-metadata">

**Author:** [@Ganeshmete77](https://community.dynatrace.com/u/Ganeshmete77)\
**Replies:** 3\
**Last updated:** [August 8, 2025, 4:22pm UTC](https://community.dynatrace.com/t/need-dql-query-to-get-failure-rate-by-service-instance-or-process-group-instance/52858 "2025-08-08T16:22:47Z")

</div>

Need DQL Query to get failure rate by service instance or process group instance I tried below query: timeseries { failedRequests = sum(dt.service.request.count, scalar: true, filter: { failed == true }), totalRequest…

---

## [Formation duration as HH:mm](https://community.dynatrace.com/t/formation-duration-as-hh-mm/50054)

<div class="topic-metadata">

**Author:** [@Jarren](https://community.dynatrace.com/u/Jarren)\
**Replies:** 3\
**Last updated:** [August 7, 2025, 8:28pm UTC](https://community.dynatrace.com/t/formation-duration-as-hh-mm/50054 "2025-08-07T20:28:51Z")

</div>

I have a dashboard that lists task durations based on log timestamps. My DQL looks something like. fetch logs | parse content, "LD JSON:audit" | fields timestamp, audit | fieldsAdd uuid = audit\[uuid\], Task = audit\[statu…

---

## [List GCP Metrics in Dynatrace Notebooks Using DQL](https://community.dynatrace.com/t/list-gcp-metrics-in-dynatrace-notebooks-using-dql/52822)

<div class="topic-metadata">

**Author:** [@PeteBush](https://community.dynatrace.com/u/PeteBush)\
**Replies:** 3\
**Last updated:** [August 7, 2025, 1:09pm UTC](https://community.dynatrace.com/t/list-gcp-metrics-in-dynatrace-notebooks-using-dql/52822 "2025-08-07T13:09:46Z")

</div>

Hi, I want to use a notebook to list all the ingested GCP metrics in our tenant and organise the results by GCP product, for example… Spanner: Metric 1 Metric 2 Apigee: Metric 1 Metric 2 I’ve been searching for th…

---

## [DQL - Count records bigger than in a array of records](https://community.dynatrace.com/t/dql-count-records-bigger-than-in-a-array-of-records/52702)

<div class="topic-metadata">

**Author:** [@m\_zol](https://community.dynatrace.com/u/m_zol)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 8:11pm UTC](https://community.dynatrace.com/t/dql-count-records-bigger-than-in-a-array-of-records/52702 "2025-08-05T20:11:34Z")

</div>

Hello, Is there any way to count records in a array if the values are bigger than a number? The scenario is to get the records from a response time timeseries metric and check how many records are more than 1.5 seconds…

---

## [DQL percentage in a graph of two arrays (error versus total)](https://community.dynatrace.com/t/dql-percentage-in-a-graph-of-two-arrays-error-versus-total/52712)

<div class="topic-metadata">

**Author:** [@revoke7889](https://community.dynatrace.com/u/revoke7889)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 7:30am UTC](https://community.dynatrace.com/t/dql-percentage-in-a-graph-of-two-arrays-error-versus-total/52712 "2025-08-05T07:30:30Z")

</div>

Hi community! Struggling with the following - is it possible to create a percentage calculation and show it in a Dynatrace dashboard visualization (timeseries graph)? I have the following working DQL that includes two a…

---

## [Check Grail Resource Store API Availability for Reliable Access](https://community.dynatrace.com/t/check-grail-resource-store-api-availability-for-reliable-access/52778)

<div class="topic-metadata">

**Author:** [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 2:02am UTC](https://community.dynatrace.com/t/check-grail-resource-store-api-availability-for-reliable-access/52778 "2025-08-05T02:02:29Z")

</div>

Hello Team, This is regarding the newly released feature, DQL lookup data on version 1.320. Although our cluster is already on version 1.320, we are unable to locate the Grail - Resource Store API. Do we need to enable…

---

## [DQL function replacing splunk command stats list](https://community.dynatrace.com/t/dql-function-replacing-splunk-command-stats-list/52754)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 1\
**Last updated:** [August 1, 2025, 5:39pm UTC](https://community.dynatrace.com/t/dql-function-replacing-splunk-command-stats-list/52754 "2025-08-01T17:39:59Z")

</div>

is there a DQL Command/function available which can replace the stats list command in splunk ? Thanks in advance

---

## [Reuse Custom Metrics in DQL Without Reinitialisation](https://community.dynatrace.com/t/reuse-custom-metrics-in-dql-without-reinitialisation/52636)

<div class="topic-metadata">

**Author:** [@knallapa](https://community.dynatrace.com/u/knallapa)\
**Replies:** 3\
**Last updated:** [July 31, 2025, 4:22am UTC](https://community.dynatrace.com/t/reuse-custom-metrics-in-dql-without-reinitialisation/52636 "2025-07-31T04:22:37Z")

</div>

I’m currently using this query to reuse the same custom metric at different time intervals to populate table data in my dashboard. However, I’d like to simplify the query and reuse a variable multiple times with differen…

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

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