# DQL

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

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

**Page:** 17

---

## [DQL Parse msg and extract data to new field](https://community.dynatrace.com/t/dql-parse-msg-and-extract-data-to-new-field/50484)

<div class="topic-metadata">

**Author:** [@almog50](https://community.dynatrace.com/u/almog50)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 6:21pm UTC](https://community.dynatrace.com/t/dql-parse-msg-and-extract-data-to-new-field/50484 "2025-02-27T18:21:08Z")

</div>

Hi, I have the following msg: "Starting event processing. Event headers​:key:s2k\_bucketName, value:x-x-stg Key:w2w\_objectUrl, value:processing/operations/2025/02/27/Operation-x-2025-02-24’T’19-20-00-stg.csv Key:s2k\_li…

---

## [Parsing log content JSON](https://community.dynatrace.com/t/parsing-log-content-json/49991)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 7\
**Last updated:** [February 25, 2025, 7:17pm UTC](https://community.dynatrace.com/t/parsing-log-content-json/49991 "2025-02-25T19:17:02Z")

</div>

I am trying to parse this log content and get the data from the JSON. I need event type, and event\_timestamp. Can anyone help with the DQL? Thanks in advance. 2025-01-29 09:37:46,297 app-name \[main\] DEBUG .util.MessageU…

---

## [Explore Advanced Time-Series Analysis Using DQL](https://community.dynatrace.com/t/explore-advanced-time-series-analysis-using-dql/50390)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 11:50am UTC](https://community.dynatrace.com/t/explore-advanced-time-series-analysis-using-dql/50390 "2025-02-21T11:50:54Z")

</div>

Hello, (and yes I know you can use -1 as default, but this is more fun) As an example: timeseries def1=count(dt.host.cpu.load,default:1),{def2=count(dt.host.cpu.load,default:0)}| fieldsadd Result = def1\[\] - def2\[\] | f…

---

## [Learn Useful DQL Tips for Efficient Querying and Data Analysis](https://community.dynatrace.com/t/learn-useful-dql-tips-for-efficient-querying-and-data-analysis/50368)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 4:13pm UTC](https://community.dynatrace.com/t/learn-useful-dql-tips-for-efficient-querying-and-data-analysis/50368 "2025-02-20T16:13:28Z")

</div>

Hello we notice strange things with DPL, looked like he was skipping the first letter in some words, It was just a syntax mistake, so please be aware: result: \*\*\*Yes if you use a single LD, it will consume a cha…

---

## [Adding field to time series based on separate record](https://community.dynatrace.com/t/adding-field-to-time-series-based-on-separate-record/50328)

<div class="topic-metadata">

**Author:** [@paulito](https://community.dynatrace.com/u/paulito)\
**Replies:** 3\
**Last updated:** [February 19, 2025, 5:16pm UTC](https://community.dynatrace.com/t/adding-field-to-time-series-based-on-separate-record/50328 "2025-02-19T17:16:33Z")

</div>

I have a time series with statuses from 0-12. I’d like to replace these status numbers with words as follows: timeseries PR1\_status = avg(PR1\_status), by: { device } | join \[ data record(Status = "Unknown", PR1\_st…

---

## [Group by hours of the day with complete listing of hours](https://community.dynatrace.com/t/group-by-hours-of-the-day-with-complete-listing-of-hours/50289)

<div class="topic-metadata">

**Author:** [@KA](https://community.dynatrace.com/u/KA)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 11:49pm UTC](https://community.dynatrace.com/t/group-by-hours-of-the-day-with-complete-listing-of-hours/50289 "2025-02-17T23:49:48Z")

</div>

Hi Dynatrace Community, Seeking some guidance on a DQL that presently fetches data for the past 28 days and groups by hours of the day which shows us the peak usage hours for our web application for a period of time. Th…

---

## [Need a help to fetch log based on the condition from json](https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267)

<div class="topic-metadata">

**Author:** [@JanJanu](https://community.dynatrace.com/u/JanJanu)\
**Replies:** 1\
**Last updated:** [February 17, 2025, 3:16pm UTC](https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267 "2025-02-17T15:16:34Z")

</div>

this is the sample json format need DQL to fetch logs if imported is 11 based on the ID { “ID”: { “ID”: “ghghgghgh”, “Type”: “jj” }, “Fruits”: { “Character”: { “color”:“red” “taste”: bitter, }, “Types”: { “im…

---

## [Write a lookup query in DQL that uses the entity id to pull the host group](https://community.dynatrace.com/t/write-a-lookup-query-in-dql-that-uses-the-entity-id-to-pull-the-host-group/50240)

<div class="topic-metadata">

**Author:** [@gdalessandro](https://community.dynatrace.com/u/gdalessandro)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 1:56pm UTC](https://community.dynatrace.com/t/write-a-lookup-query-in-dql-that-uses-the-entity-id-to-pull-the-host-group/50240 "2025-02-13T13:56:16Z")

</div>

I am trying to write a DQL query that starts on the dt.davis.problems events and uses the affected\_entity\_id field to lookup the dt.entity.host.group.name field.

---

## [Extraction of Fields from an Array and Creation of Columns While Maintaining the Structure, Replacing Missing Fields with Nul](https://community.dynatrace.com/t/extraction-of-fields-from-an-array-and-creation-of-columns-while-maintaining-the-structure-replacing-missing-fields-with-nul/50116)

<div class="topic-metadata">

**Author:** [@carlos\_carreno](https://community.dynatrace.com/u/carlos_carreno)\
**Replies:** 6\
**Last updated:** [February 13, 2025, 11:42am UTC](https://community.dynatrace.com/t/extraction-of-fields-from-an-array-and-creation-of-columns-while-maintaining-the-structure-replacing-missing-fields-with-nul/50116 "2025-02-13T11:42:41Z")

</div>

Good afternoon, I need your help. The objective is the following process with different arrays from Bizevent: 1. Verify in each position if the field exists 2. If it exists, create the column with the information from …

---

## [Filtering events by Management Zone, Gen3 Dynatrace Dashboard.](https://community.dynatrace.com/t/filtering-events-by-management-zone-gen3-dynatrace-dashboard/48597)

<div class="topic-metadata">

**Author:** [@Ahmedrahbi](https://community.dynatrace.com/u/Ahmedrahbi)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 11:12pm UTC](https://community.dynatrace.com/t/filtering-events-by-management-zone-gen3-dynatrace-dashboard/48597 "2025-02-11T23:12:47Z")

</div>

Hello, Dynatrace Community! I’m working with Gen3 DQL and trying to filter events based on a specific management zone, specifically for the “xxxx” management zone. I attempted the query in Gen3, and I’m attaching a scre…

---

## [DQL - Metric in dashboard to host](https://community.dynatrace.com/t/dql-metric-in-dashboard-to-host/50186)

<div class="topic-metadata">

**Author:** [@Fast](https://community.dynatrace.com/u/Fast)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 9:12am UTC](https://community.dynatrace.com/t/dql-metric-in-dashboard-to-host/50186 "2025-02-11T09:12:20Z")

</div>

Hi there. I am new in DQL, and I need help to have and view metrics (CPU usage by host / Memory usage by host) in the dashboard, those hosts have an specific tag. Therefore, I have been trying to get the metrics since …

---

## [Fetch and Sort Problems by Application Using DQL](https://community.dynatrace.com/t/fetch-and-sort-problems-by-application-using-dql/50096)

<div class="topic-metadata">

**Author:** [@sjena7810](https://community.dynatrace.com/u/sjena7810)\
**Replies:** 4\
**Last updated:** [February 7, 2025, 2:36pm UTC](https://community.dynatrace.com/t/fetch-and-sort-problems-by-application-using-dql/50096 "2025-02-07T14:36:27Z")

</div>

Hi all! I have a dashboard where I want to fetch all the active problems and group the problems together by application. Then, using a variable that sorts through applications, I want to use that variable as a multi-sel…

---

## [Retrieve API Timestamps Using DQL for Accurate Event Tracking](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052)

<div class="topic-metadata">

**Author:** [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Replies:** 2\
**Last updated:** [February 6, 2025, 3:25pm UTC](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052 "2025-02-06T15:25:34Z")

</div>

Hello community, wanted to know something about the new DT DQL API. If I set up timeframe withing the DQL query and remove the “start” and “end” parameter from the API, will the timeframe set up in the DQL query be app…

---

## [is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe?](https://community.dynatrace.com/t/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at-the-same-time-duranion-should-be-pick-from-dashboad-timeframe/50122)

<div class="topic-metadata">

**Author:** [@Tarunbt](https://community.dynatrace.com/u/Tarunbt)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 10:08am UTC](https://community.dynatrace.com/t/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at-the-same-time-duranion-should-be-pick-from-dashboad-timeframe/50122 "2025-02-06T10:08:23Z")

</div>

I want to create tile with day -1 or previous date but at the same time I want to use common dashboard timeframe. Mean if I set 4 hours in dashboard time duration tile show yesterday’s 4 hours data so that I can compare…

---

## [Help Needed with Extracting Metrics from Kong API Gateway Logs](https://community.dynatrace.com/t/help-needed-with-extracting-metrics-from-kong-api-gateway-logs/50043)

<div class="topic-metadata">

**Author:** [@ErwinB](https://community.dynatrace.com/u/ErwinB)\
**Replies:** 4\
**Last updated:** [February 6, 2025, 8:41am UTC](https://community.dynatrace.com/t/help-needed-with-extracting-metrics-from-kong-api-gateway-logs/50043 "2025-02-06T08:41:28Z")

</div>

Hi Dynatrace Community, As a newbie navigating Dynatrace, I’m on a mission to create great dashboards from Kong API Gateway logs. Things are going well so far, OpenPipeline makes it pretty smooth to generate metrics fro…

---

## [DQL Monthly Problems count](https://community.dynatrace.com/t/dql-monthly-problems-count/50068)

<div class="topic-metadata">

**Author:** [@Eyad](https://community.dynatrace.com/u/Eyad)\
**Replies:** 2\
**Last updated:** [February 4, 2025, 1:57pm UTC](https://community.dynatrace.com/t/dql-monthly-problems-count/50068 "2025-02-04T13:57:38Z")

</div>

I create a monthly dashboard where I manually gather data on problems from the past month and compare it to previous months. I want to create a line graph that shows the number of problems per monthly from the 1st to the…

---

## [Parsing log content](https://community.dynatrace.com/t/parsing-log-content/50058)

<div class="topic-metadata">

**Author:** [@goutham\_a](https://community.dynatrace.com/u/goutham_a)\
**Replies:** 2\
**Last updated:** [February 3, 2025, 8:37pm UTC](https://community.dynatrace.com/t/parsing-log-content/50058 "2025-02-03T20:37:57Z")

</div>

Hi, I am trying to parse this log content and get the response time, Can anyone please help with the DQL? Thanks in advance. 2025-01-29 19:32:07 ebafc69c-9f9b-4984-bd9e-9d22e5ef2246 -1234dd56:123456789ww:-1234::1234567…

---

## [Hourly load distribution graph](https://community.dynatrace.com/t/hourly-load-distribution-graph/50049)

<div class="topic-metadata">

**Author:** [@Red](https://community.dynatrace.com/u/Red)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 6:24pm UTC](https://community.dynatrace.com/t/hourly-load-distribution-graph/50049 "2025-02-03T18:24:46Z")

</div>

Hello community, I’m in the process of transferring dashboards from Splunk Cloud to Dynatrace (I’m getting the same data into a dedicated bucket). I try to count the number of events per hour and per entity, in order t…

---

## [How do I calculate the total response time for lambda function](https://community.dynatrace.com/t/how-do-i-calculate-the-total-response-time-for-lambda-function/50001)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 12:18am UTC](https://community.dynatrace.com/t/how-do-i-calculate-the-total-response-time-for-lambda-function/50001 "2025-01-30T00:18:03Z")

</div>

How do I calculate the total response time for lambda function?

---

## [Carry over the value of a field to another result row](https://community.dynatrace.com/t/carry-over-the-value-of-a-field-to-another-result-row/49902)

<div class="topic-metadata">

**Author:** [@Red](https://community.dynatrace.com/u/Red)\
**Replies:** 2\
**Last updated:** [January 28, 2025, 10:41am UTC](https://community.dynatrace.com/t/carry-over-the-value-of-a-field-to-another-result-row/49902 "2025-01-28T10:41:59Z")

</div>

Hello community, I have set up a bucket to retrieve events from the “Splunk OnCall” tool in order to create monitoring dashboards. No problem on this side, I receive my data. I am preparing a dashboard with the listing…

---

## [DQL - Need to split network i/o process metrics for azure VMs in a dt.entity.process\_group](https://community.dynatrace.com/t/dql-need-to-split-network-i-o-process-metrics-for-azure-vms-in-a-dt-entity-process-group/49330)

<div class="topic-metadata">

**Author:** [@jstead](https://community.dynatrace.com/u/jstead)\
**Replies:** 2\
**Last updated:** [January 27, 2025, 4:11pm UTC](https://community.dynatrace.com/t/dql-need-to-split-network-i-o-process-metrics-for-azure-vms-in-a-dt-entity-process-group/49330 "2025-01-27T16:11:59Z")

</div>

Hello I am trying to create a DQL query for a dashboard that can output process network I/O metrics (dt.process.network.bytes\_rx and dt.process.network.bytes\_tx) for two pairs of Azure virtual machines (with OneAgent in…

---

## [DQL Timeseries: Unexpected Data Point Aggregation on different Intervals](https://community.dynatrace.com/t/dql-timeseries-unexpected-data-point-aggregation-on-different-intervals/48634)

<div class="topic-metadata">

**Author:** [@Tyniarran](https://community.dynatrace.com/u/Tyniarran)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 11:47am UTC](https://community.dynatrace.com/t/dql-timeseries-unexpected-data-point-aggregation-on-different-intervals/48634 "2025-01-22T11:47:42Z")

</div>

Hello, we recently wanted to implement a feature with Dynatrace that alerts users if their namespace overrequests CPU resource in the Openshift Cluster. As a basis for this feature, we were planning on using a DQL quer…

---

## [dql query for server uptime](https://community.dynatrace.com/t/dql-query-for-server-uptime/49854)

<div class="topic-metadata">

**Author:** [@akashsaini](https://community.dynatrace.com/u/akashsaini)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 9:16am UTC](https://community.dynatrace.com/t/dql-query-for-server-uptime/49854 "2025-01-22T09:16:35Z")

</div>

Any one help dql query for system uptime?

---

## [How to get the cloud provider name from Kubertenes](https://community.dynatrace.com/t/how-to-get-the-cloud-provider-name-from-kubertenes/49748)

<div class="topic-metadata">

**Author:** [@agravier](https://community.dynatrace.com/u/agravier)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 8:26am UTC](https://community.dynatrace.com/t/how-to-get-the-cloud-provider-name-from-kubertenes/49748 "2025-01-21T08:26:25Z")

</div>

Hello, The only way I’ve found to determine whether a cluster is running on AKS or EKS is to use a classicEntitySelector like this: fetch dt.entity.cloud\_application\_namespace | filter in (id, classicEntitySelector("""…

---

## [DQL parse command - help with correct syntax](https://community.dynatrace.com/t/dql-parse-command-help-with-correct-syntax/49821)

<div class="topic-metadata">

**Author:** [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 4:11am UTC](https://community.dynatrace.com/t/dql-parse-command-help-with-correct-syntax/49821 "2025-01-21T04:11:54Z")

</div>

Hi all I have this DQL using the parse command (LD) - in my view it should work- PGI data is returned but not split into columns as per the parse command I am just parsing the column “softwareTechnologies” which contai…

---

## [DQL JOIN: How to Join from dt.entity.process\_group\_instance to dt.entity.host\_group](https://community.dynatrace.com/t/dql-join-how-to-join-from-dt-entity-process-group-instance-to-dt-entity-host-group/49766)

<div class="topic-metadata">

**Author:** [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Replies:** 1\
**Last updated:** [January 16, 2025, 9:00pm UTC](https://community.dynatrace.com/t/dql-join-how-to-join-from-dt-entity-process-group-instance-to-dt-entity-host-group/49766 "2025-01-16T21:00:45Z")

</div>

DQL JOIN: How to Join from dt.entity.process\_group\_instance to dt.entity.host\_group I’m struggling to find a way of doing this. I’m look to run daily reports of DT Agents version following an Agent update. To track whic…

---

## [Get Host Name in Open Events](https://community.dynatrace.com/t/get-host-name-in-open-events/42888)

<div class="topic-metadata">

**Author:** [@PickleRick](https://community.dynatrace.com/u/PickleRick)\
**Replies:** 5\
**Last updated:** [January 15, 2025, 11:31am UTC](https://community.dynatrace.com/t/get-host-name-in-open-events/42888 "2025-01-15T11:31:24Z")

</div>

Greetings! I’m attempting to DQL my way to a problems dashboard. Think of the classic Problems UI in DT, showing active problems and what’s affected. So far my DQL is very basic: fetch events | filter event.kind == "…

---

## [get requests data and attributes through grails and DQL](https://community.dynatrace.com/t/get-requests-data-and-attributes-through-grails-and-dql/41030)

<div class="topic-metadata">

**Author:** [@adtuser](https://community.dynatrace.com/u/adtuser)\
**Replies:** 9\
**Last updated:** [January 14, 2025, 3:28am UTC](https://community.dynatrace.com/t/get-requests-data-and-attributes-through-grails-and-dql/41030 "2025-01-14T03:28:22Z")

</div>

Can we access service requests data and request attributes through grails and DQL? Thank you

---

## [Is there a way to get row\_number () or any function to generate sequential number in DQL ?](https://community.dynatrace.com/t/is-there-a-way-to-get-row-number-or-any-function-to-generate-sequential-number-in-dql/49620)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 4\
**Last updated:** [January 13, 2025, 5:45pm UTC](https://community.dynatrace.com/t/is-there-a-way-to-get-row-number-or-any-function-to-generate-sequential-number-in-dql/49620 "2025-01-13T17:45:26Z")

</div>

Is there a way to get row\_number () or any function to generate sequential number in DQL ?

---

## [Perform Dependency Analysis Using DQL for Service Mapping](https://community.dynatrace.com/t/perform-dependency-analysis-using-dql-for-service-mapping/49656)

<div class="topic-metadata">

**Author:** [@m\_zol](https://community.dynatrace.com/u/m_zol)\
**Replies:** 5\
**Last updated:** [January 13, 2025, 1:08pm UTC](https://community.dynatrace.com/t/perform-dependency-analysis-using-dql-for-service-mapping/49656 "2025-01-13T13:08:43Z")

</div>

Hello, I need a DQL to answer the following questions: - What is the response time, failure count and throughput of Service B that is called by Service A. The result need to be only for the calls that Service A make to…

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

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