# DQL

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

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

**Page:** 18

---

## [Trouble getting results from a previous task](https://community.dynatrace.com/t/trouble-getting-results-from-a-previous-task/49279)

<div class="topic-metadata">

**Author:** [@rseibert1](https://community.dynatrace.com/u/rseibert1)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 9:01am UTC](https://community.dynatrace.com/t/trouble-getting-results-from-a-previous-task/49279 "2025-01-09T09:01:01Z")

</div>

The below is giving a parse error, though it seems to be pulling a list of Id’s that seems to be formatted wrong?Trying to pull the list of Id’s from the task.{% for record in result(“unhealthy\_workers\_table”)\[“records”\]…

---

## [Dynatrace DQL query to find top web contributor for particular user action and show same in dashboard](https://community.dynatrace.com/t/dynatrace-dql-query-to-find-top-web-contributor-for-particular-user-action-and-show-same-in-dashboard/49602)

<div class="topic-metadata">

**Author:** [@Sachinpai](https://community.dynatrace.com/u/Sachinpai)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 7:16am UTC](https://community.dynatrace.com/t/dynatrace-dql-query-to-find-top-web-contributor-for-particular-user-action-and-show-same-in-dashboard/49602 "2025-01-08T07:16:28Z")

</div>

Dynatrace DQL query to find top web contributor for particular user action and show same in dashboard. Purpose is to add the data in dashboard.

---

## [DQL - Sort and display data](https://community.dynatrace.com/t/dql-sort-and-display-data/49568)

<div class="topic-metadata">

**Author:** [@olgatimbur](https://community.dynatrace.com/u/olgatimbur)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 6:24pm UTC](https://community.dynatrace.com/t/dql-sort-and-display-data/49568 "2025-01-07T18:24:16Z")

</div>

Hello, I have a question if i can get some support and idea how I can achieve the required result I have a pipeline which is running 2 times a night and the logs are pushed to dynatrace I need to be able to display t…

---

## [Lookup Entity Relationships in Dynatrace DQL Queries](https://community.dynatrace.com/t/lookup-entity-relationships-in-dynatrace-dql-queries/44351)

<div class="topic-metadata">

**Author:** [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Replies:** 1\
**Last updated:** [January 3, 2025, 3:38pm UTC](https://community.dynatrace.com/t/lookup-entity-relationships-in-dynatrace-dql-queries/44351 "2025-01-03T15:38:39Z")

</div>

In the DQL documentation (here), it says that to find all the relationships of an entity, you can just use a command like this: describe dt.entity.service\_instance | filter in(data\_types, "RELATIONSHIP") And this used …

---

## [DQL nice to know: Using a filter, but when not in filter then show record with empty attribute](https://community.dynatrace.com/t/dql-nice-to-know-using-a-filter-but-when-not-in-filter-then-show-record-with-empty-attribute/49552)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 3:55pm UTC](https://community.dynatrace.com/t/dql-nice-to-know-using-a-filter-but-when-not-in-filter-then-show-record-with-empty-attribute/49552 "2025-01-02T15:55:37Z")

</div>

Hello, Maybe this is handy for someone. Suppose you want to use a filter, but you also want to show records not within the filter with an empty attribute You need to fetch the data twice (-; The “data” example: data r…

---

## [Next DQL question/challenge:  how to transpose, like in excel(-;](https://community.dynatrace.com/t/next-dql-question-challenge-how-to-transpose-like-in-excel/49547)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 1:02pm UTC](https://community.dynatrace.com/t/next-dql-question-challenge-how-to-transpose-like-in-excel/49547 "2025-01-02T13:02:39Z")

</div>

Happy new year all!1 How do I get from rec1 value1 rec1 value2 rec2 value3 rec2 value4 to: rec1 value1 value2 rec2 value3 value4 I have read, but did not quite understand }-; (Solved: DQL/DPL Transposing Arrays…

---

## [DQL/DPL question/puzzle](https://community.dynatrace.com/t/dql-dpl-question-puzzle/49524)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 8:06am UTC](https://community.dynatrace.com/t/dql-dpl-question-puzzle/49524 "2025-01-02T08:06:17Z")

</div>

Hello, Last day of the year question/puzzle… When showing tags from a host, an array is retuned. I want to extract the contents of a specific tag. So my thought was to convert the array to a string, and use DPL to ex…

---

## [Get Start Timestamp based on Log Correlation Id in Dynatrace Grail](https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514)

<div class="topic-metadata">

**Author:** [@KeerthanaH](https://community.dynatrace.com/u/KeerthanaH)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 7:06pm UTC](https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514 "2024-12-30T19:06:56Z")

</div>

I have requirement to get the start timestamp from the logs based on a particular correlation Id in the Grail. Could you please suggest on this

---

## [TimeSeries DQL -join](https://community.dynatrace.com/t/timeseries-dql-join/49505)

<div class="topic-metadata">

**Author:** [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 7:51am UTC](https://community.dynatrace.com/t/timeseries-dql-join/49505 "2024-12-30T07:51:55Z")

</div>

Good day, I have two time series as shown in the image. The first series is the result of bizevents that were ingested as historical data, and the maketimeseries command was used to generate a time series for the period …

---

## [Process Memory /CPU usage per host and Service](https://community.dynatrace.com/t/process-memory-cpu-usage-per-host-and-service/49471)

<div class="topic-metadata">

**Author:** [@eranma](https://community.dynatrace.com/u/eranma)\
**Replies:** 3\
**Last updated:** [December 23, 2024, 1:34pm UTC](https://community.dynatrace.com/t/process-memory-cpu-usage-per-host-and-service/49471 "2024-12-23T13:34:59Z")

</div>

I’m trying to create a timeseries tile that presents a Process Memory /CPU usage per host, and filter it according to a variable called “ServiceId”. for example : I use a variable called “ServiceID” and i choose “Servic…

---

## [DQL problem with dates](https://community.dynatrace.com/t/dql-problem-with-dates/49405)

<div class="topic-metadata">

**Author:** [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Replies:** 1\
**Last updated:** [December 19, 2024, 7:14am UTC](https://community.dynatrace.com/t/dql-problem-with-dates/49405 "2024-12-19T07:14:35Z")

</div>

I need your help. I have a query in Dynatrace (DQL) where I have events, and these events have a start date and an end date. I can have multiple events within a time range. These events are retrieved from dt.davis.proble…

---

## [Help! Best Practices for Handling fields in Business Event Processing](https://community.dynatrace.com/t/help-best-practices-for-handling-fields-in-business-event-processing/49344)

<div class="topic-metadata">

**Author:** [@tracegazer](https://community.dynatrace.com/u/tracegazer)\
**Replies:** 2\
**Last updated:** [December 18, 2024, 4:17pm UTC](https://community.dynatrace.com/t/help-best-practices-for-handling-fields-in-business-event-processing/49344 "2024-12-18T16:17:38Z")

</div>

Hello Community! I’m trying to create processing rules for fields corresponding to already configured business events. Specifically, I am extracting a field with the structure “\[{},{},{},{},{},{},{},{},{}\]”, which I can’…

---

## [No Data recorded](https://community.dynatrace.com/t/no-data-recorded/49373)

<div class="topic-metadata">

**Author:** [@schnarrNoah](https://community.dynatrace.com/u/schnarrNoah)\
**Replies:** 1\
**Last updated:** [December 17, 2024, 3:14am UTC](https://community.dynatrace.com/t/no-data-recorded/49373 "2024-12-17T03:14:58Z")

</div>

Hello people, I have a curious issue on my data visualization. My approach was to get a count from data like this: fetch logs | filter gitlab.source == “gitlab-exporter” | filter contains(stage.name, “validate-deploy…

---

## [DQL Query - how to get the appVersion](https://community.dynatrace.com/t/dql-query-how-to-get-the-appversion/49304)

<div class="topic-metadata">

**Author:** [@sivag1205](https://community.dynatrace.com/u/sivag1205)\
**Replies:** 1\
**Last updated:** [December 15, 2024, 9:18pm UTC](https://community.dynatrace.com/t/dql-query-how-to-get-the-appversion/49304 "2024-12-15T21:18:22Z")

</div>

the appVersion is 3.0.1.1234 (a.b.c.d- format). but, i need to get the appVersion as a.b.c. how to achieve that in here? actually i achived that by using this code: data record(appVersion = "3.0.2.1102") | fieldsAdd v…

---

## [OpenPipeline summarization](https://community.dynatrace.com/t/openpipeline-summarization/49318)

<div class="topic-metadata">

**Author:** [@\_r\_k](https://community.dynatrace.com/u/_r_k)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 6:15pm UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318 "2024-12-12T18:15:43Z")

</div>

How to summarize/aggregate in OpenPipeline this \`\`\` | summarize accessed\_objects\_count=sum(arr\_size) \`\`\` nor \`\`\` | expand accessed\_objects\_array | summarize accessed\_objects\_count=count() \`\`\` is allowed, so how…

---

## [DQL - timeseries resolution](https://community.dynatrace.com/t/dql-timeseries-resolution/35756)

<div class="topic-metadata">

**Author:** [@christian\_barth](https://community.dynatrace.com/u/christian_barth)\
**Replies:** 3\
**Last updated:** [December 11, 2024, 1:59pm UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756 "2024-12-11T13:59:01Z")

</div>

Hello.Can someone help me add resolution (e.g. 1 minute) to this DQL query? timeseries avg(dt.host.disk.used), by:{dt.entity.host}, from:now()-4h | limit 5 Thanks in advance!

---

## [Log Processing Rule - classic](https://community.dynatrace.com/t/log-processing-rule-classic/47537)

<div class="topic-metadata">

**Author:** [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Replies:** 5\
**Last updated:** [December 11, 2024, 4:22am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537 "2024-12-11T04:22:06Z")

</div>

Hello everyone, I’m new to using pattern language. I’m coming to the community because I’m having trouble getting the fields and values ​​from a json format that comes from log ingestion. The Json format is the following…

---

## [DQL - get percentile of a value](https://community.dynatrace.com/t/dql-get-percentile-of-a-value/49259)

<div class="topic-metadata">

**Author:** [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Replies:** 2\
**Last updated:** [December 10, 2024, 2:11pm UTC](https://community.dynatrace.com/t/dql-get-percentile-of-a-value/49259 "2024-12-10T14:11:05Z")

</div>

Hi DQLers, our tenant is strongly tag-oriented and we tagged almost each detected service with a key:value tag that allows us to assign each service to a specific application (and, in turn, to an application development …

---

## [Are all events treated equal](https://community.dynatrace.com/t/are-all-events-treated-equal/49262)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 9:25pm UTC](https://community.dynatrace.com/t/are-all-events-treated-equal/49262 "2024-12-09T21:25:04Z")

</div>

Hello, So many tables/buckets, is there a table hierarchy or in other words can one record be in multiple tables or buckets. I assume technically yes, but no as a best practice? KR Henk

---

## [How to get the details of host name, hostgroup details from particular MZ  using DQL](https://community.dynatrace.com/t/how-to-get-the-details-of-host-name-hostgroup-details-from-particular-mz-using-dql/49249)

<div class="topic-metadata">

**Author:** [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 5:08am UTC](https://community.dynatrace.com/t/how-to-get-the-details-of-host-name-hostgroup-details-from-particular-mz-using-dql/49249 "2024-12-09T05:08:29Z")

</div>

I tried below query but not working. can someone help me with query. fetch dt.entity.host | managementzones == “Cloud : AWS” |flieds hosts, hostgroup it is giving blank result

---

## [DQL - show detected services number trend](https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177)

<div class="topic-metadata">

**Author:** [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 1:58pm UTC](https://community.dynatrace.com/t/dql-show-detected-services-number-trend/49177 "2024-12-06T13:58:52Z")

</div>

Hi, I’m trying to setup a dashboard where I want to show some trends over the time. To make the simplest possible example, let’s assume that I’d like to chart the total number of services detected in my tenant over the …

---

## [Extracting Date and Time of a Value within a Timeframe in Dynatrace DQL](https://community.dynatrace.com/t/extracting-date-and-time-of-a-value-within-a-timeframe-in-dynatrace-dql/49120)

<div class="topic-metadata">

**Author:** [@PenteadoDouglas](https://community.dynatrace.com/u/PenteadoDouglas)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 6:24pm UTC](https://community.dynatrace.com/t/extracting-date-and-time-of-a-value-within-a-timeframe-in-dynatrace-dql/49120 "2024-12-02T18:24:07Z")

</div>

Hello, Hello, everyone! I need help creating a DQL query to extract the exact date and time of a record within a timeframe. In the example from the image, I would like to apply a filter for values \>= 890k (but it could …

---

## [Metrics & SLOs in DQL/Grail](https://community.dynatrace.com/t/metrics-slos-in-dql-grail/43548)

<div class="topic-metadata">

**Author:** [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 11:01am UTC](https://community.dynatrace.com/t/metrics-slos-in-dql-grail/43548 "2024-12-02T11:01:39Z")

</div>

Hi, Does anyone know when we will be able to natively retrieve metric data (e.g. custom services) or SLO data with DQL queries? (without going through “dynatrace-sdk/client-classic-environment”)

---

## [HostName lookup on timeseries process Grail query](https://community.dynatrace.com/t/hostname-lookup-on-timeseries-process-grail-query/46061)

<div class="topic-metadata">

**Author:** [@DAVID\_JAUREGUI1](https://community.dynatrace.com/u/DAVID_JAUREGUI1)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 10:37am UTC](https://community.dynatrace.com/t/hostname-lookup-on-timeseries-process-grail-query/46061 "2024-12-02T10:37:07Z")

</div>

I have DQL timeseries process query that I want to lookup the host and add the hostname field to the displayed fields. The issue I’m having is identifying the source & lookup fields in the lookup function that would get…

---

## [Identify LUN for each dt.entity.disk on a windows server](https://community.dynatrace.com/t/identify-lun-for-each-dt-entity-disk-on-a-windows-server/47225)

<div class="topic-metadata">

**Author:** [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 9:02am UTC](https://community.dynatrace.com/t/identify-lun-for-each-dt-entity-disk-on-a-windows-server/47225 "2024-11-29T09:02:10Z")

</div>

Hi All I have a simple DQL Disk query which provides basic Disk info - I need more :slightly\_smiling\_face: fetch dt.entity.disk | fieldsAdd belongs\_to\[dt.entity.host\] | filter belongs\_to\[dt.entity.host\] ==“HOST-xx” …

---

## [Filtering entity based on two tags variable in dashboard](https://community.dynatrace.com/t/filtering-entity-based-on-two-tags-variable-in-dashboard/47100)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 2\
**Last updated:** [November 28, 2024, 9:55pm UTC](https://community.dynatrace.com/t/filtering-entity-based-on-two-tags-variable-in-dashboard/47100 "2024-11-28T21:55:54Z")

</div>

I am trying to get a list of Oracle db instances based on two tags ( Environment and Department, those are also variable). The list will be also a variable in the dashboard. I am trying like this, but its not working for…

---

## [Result of if containing fixed value + value of a field](https://community.dynatrace.com/t/result-of-if-containing-fixed-value-value-of-a-field/49086)

<div class="topic-metadata">

**Author:** [@ANLTH](https://community.dynatrace.com/u/ANLTH)\
**Replies:** 2\
**Last updated:** [November 28, 2024, 3:22pm UTC](https://community.dynatrace.com/t/result-of-if-containing-fixed-value-value-of-a-field/49086 "2024-11-28T15:22:49Z")

</div>

Hi I am looking for a way to make a combined output of an if statement. Here is my DQL: | fieldsAdd \`Flow Object\` = if(dt.source\_entity\_name == “cpi\_message”, "CPI Log " integration\_artifact\_name, else: if(attribut…

---

## [Log Processing : Is it possible to use a logattribute to referece a PARSED JSON object value](https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548)

<div class="topic-metadata">

**Author:** [@pallepavan](https://community.dynatrace.com/u/pallepavan)\
**Replies:** 1\
**Last updated:** [November 28, 2024, 11:09am UTC](https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548 "2024-11-28T11:09:03Z")

</div>

Hi All, I am trying to enrich log based on a Fixed JSON dataset and incoming log attribute, I have parsed the Fixed json object and trying to add a new field value from Json while existing log attribute as key. is this …

---

## [DQL database service response time split by ipAddress](https://community.dynatrace.com/t/dql-database-service-response-time-split-by-ipaddress/47152)

<div class="topic-metadata">

**Author:** [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 12:43pm UTC](https://community.dynatrace.com/t/dql-database-service-response-time-split-by-ipaddress/47152 "2024-11-26T12:43:24Z")

</div>

I would appreciate if someone could lend a hand with my query. So I trying to get our DB2 response times split by IP-address and my current query template looks like this. It currently splits the data by dt.entity.ipA…

---

## [Declaring an array within a query and adding elements to it as the query iterates](https://community.dynatrace.com/t/declaring-an-array-within-a-query-and-adding-elements-to-it-as-the-query-iterates/49049)

<div class="topic-metadata">

**Author:** [@Javin\_Singh](https://community.dynatrace.com/u/Javin_Singh)\
**Replies:** 2\
**Last updated:** [November 26, 2024, 9:14am UTC](https://community.dynatrace.com/t/declaring-an-array-within-a-query-and-adding-elements-to-it-as-the-query-iterates/49049 "2024-11-26T09:14:07Z")

</div>

I am trying to declare an array (of integers) within a query and add elements to it based on the result of an if condition, using one of the record columns in the query. However I am unable to do this or find any offici…

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

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