# DQL

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

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

**Page:** 15

---

## [Parse File Directory Paths Using DQL for Structured Data](https://community.dynatrace.com/t/parse-file-directory-paths-using-dql-for-structured-data/51327)

<div class="topic-metadata">

**Author:** [@Nicolas\_M](https://community.dynatrace.com/u/Nicolas_M)\
**Replies:** 5\
**Last updated:** [April 24, 2025, 5:07pm UTC](https://community.dynatrace.com/t/parse-file-directory-paths-using-dql-for-structured-data/51327 "2025-04-24T17:07:34Z")

</div>

Hello the community, I’m ingesting a log file in this format, and I want to parse the information in color to make it easier to read in reports : P:\\LOGS\\services\\NameApps\\NameApps.Light\\NameApps.Light.HUBLOT.log Cou…

---

## [How do I merge DQL queries together?](https://community.dynatrace.com/t/how-do-i-merge-dql-queries-together/51356)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 12:09pm UTC](https://community.dynatrace.com/t/how-do-i-merge-dql-queries-together/51356 "2025-04-24T12:09:05Z")

</div>

Hi, I am trying to return some fields from dt.entity.host as well as data from dt.host.disk.used.percent. However, when I try to append them, I get null values for Utilisation. Here is my current DQL code: fetch dt.e…

---

## [JoinNested function is not showing values](https://community.dynatrace.com/t/joinnested-function-is-not-showing-values/51342)

<div class="topic-metadata">

**Author:** [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 7:45pm UTC](https://community.dynatrace.com/t/joinnested-function-is-not-showing-values/51342 "2025-04-23T19:45:18Z")

</div>

i tried example in document but result is not same as in example. anyone have idea why it is showing no.of records in table instead of actual values ?

---

## [Need help in DQL to expand columns](https://community.dynatrace.com/t/need-help-in-dql-to-expand-columns/51335)

<div class="topic-metadata">

**Author:** [@imsummii](https://community.dynatrace.com/u/imsummii)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 7:35pm UTC](https://community.dynatrace.com/t/need-help-in-dql-to-expand-columns/51335 "2025-04-23T19:35:06Z")

</div>

Hello Community, We need help in one of the DQL to expand one of the columns which are in JSON. We got to this final column from nested jsons and previously in the same query used “fieldsFlatten” to flatten a single ne…

---

## [DQL fields contains list of values](https://community.dynatrace.com/t/dql-fields-contains-list-of-values/50682)

<div class="topic-metadata">

**Author:** [@Nicolas\_S](https://community.dynatrace.com/u/Nicolas_S)\
**Replies:** 4\
**Last updated:** [April 23, 2025, 7:43am UTC](https://community.dynatrace.com/t/dql-fields-contains-list-of-values/50682 "2025-04-23T07:43:12Z")

</div>

Hello, From my logs, i need to add a tag “warning” if the reqPath field contains one of ID like “UID1” “UID2” “UID3” “UID4”. Davis Copilot Answer to this question is : fetch logs | fieldsAdd warning = if(contains(reqP…

---

## [Find Process Groups by Name and Add to Queries Using DQL Built-ins](https://community.dynatrace.com/t/find-process-groups-by-name-and-add-to-queries-using-dql-built-ins/51297)

<div class="topic-metadata">

**Author:** [@ushaghosh](https://community.dynatrace.com/u/ushaghosh)\
**Replies:** 1\
**Last updated:** [April 22, 2025, 1:18am UTC](https://community.dynatrace.com/t/find-process-groups-by-name-and-add-to-queries-using-dql-built-ins/51297 "2025-04-22T01:18:18Z")

</div>

I have a process griup which is running on 30+ hosts. I am unable to find a DQL query which would help me locate prcess with name. Process group org.apache.xxxx.distributed.yyyy I was able to locate this process under …

---

## [DQL Parse command](https://community.dynatrace.com/t/dql-parse-command/51269)

<div class="topic-metadata">

**Author:** [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Replies:** 4\
**Last updated:** [April 21, 2025, 2:00pm UTC](https://community.dynatrace.com/t/dql-parse-command/51269 "2025-04-21T14:00:05Z")

</div>

just practicing the DQL commands, can someone help me fix this parse command. it is from demo env. and if anyone have better document to understand the DQL with example. please share with me. fetch logs | filter matche…

---

## [error when adding Disks to Hosts limiting results](https://community.dynatrace.com/t/error-when-adding-disks-to-hosts-limiting-results/51282)

<div class="topic-metadata">

**Author:** [@brandon\_camp](https://community.dynatrace.com/u/brandon_camp)\
**Replies:** 2\
**Last updated:** [April 18, 2025, 5:49pm UTC](https://community.dynatrace.com/t/error-when-adding-disks-to-hosts-limiting-results/51282 "2025-04-18T17:49:10Z")

</div>

My error is similar to this post that I don’t see a resolution for: https://community.dynatrace.com/t5/DQL/DQL-Relationship-Query-returning-too-many-entity-IDs/m-p/229409 I am running the DQL below which results in erro…

---

## [DQL Query joining Logs on Spans not Returning Results](https://community.dynatrace.com/t/dql-query-joining-logs-on-spans-not-returning-results/51227)

<div class="topic-metadata">

**Author:** [@GPtheSQL](https://community.dynatrace.com/u/GPtheSQL)\
**Replies:** 1\
**Last updated:** [April 17, 2025, 10:49am UTC](https://community.dynatrace.com/t/dql-query-joining-logs-on-spans-not-returning-results/51227 "2025-04-17T10:49:50Z")

</div>

I am trying to find all logs for traces with a certain name using DQL. I discovered in notebooks that spans has the name I am looking for in a column called endpoint.name as such, I believed the below query would work: f…

---

## [Apply Variables in Dynatrace DQL Filters Using matchesPhrase](https://community.dynatrace.com/t/apply-variables-in-dynatrace-dql-filters-using-matchesphrase/51263)

<div class="topic-metadata">

**Author:** [@pditmar2](https://community.dynatrace.com/u/pditmar2)\
**Replies:** 2\
**Last updated:** [April 16, 2025, 8:42pm UTC](https://community.dynatrace.com/t/apply-variables-in-dynatrace-dql-filters-using-matchesphrase/51263 "2025-04-16T20:42:49Z")

</div>

Summary: Wildcard searches in Dynatrace can be challenging because DQL requires string variables to be enclosed in quotation marks. To work around this, use the concat function to add wildcards around the variable. Examp…

---

## [Parse Multiline Log](https://community.dynatrace.com/t/parse-multiline-log/42614)

<div class="topic-metadata">

**Author:** [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Replies:** 5\
**Last updated:** [April 15, 2025, 6:58pm UTC](https://community.dynatrace.com/t/parse-multiline-log/42614 "2025-04-15T18:58:23Z")

</div>

Hello, We are facing a problem parsing log lines where we understand that the root cause is due to the data being multiline. Below is an example log: 2023-02-31 11:51:28,988 - INFO - Prediction Output: class0\_proba=0.…

---

## [Workflow event trigger not saving](https://community.dynatrace.com/t/workflow-event-trigger-not-saving/51222)

<div class="topic-metadata">

**Author:** [@masterman](https://community.dynatrace.com/u/masterman)\
**Replies:** 1\
**Last updated:** [April 14, 2025, 4:01pm UTC](https://community.dynatrace.com/t/workflow-event-trigger-not-saving/51222 "2025-04-14T16:01:12Z")

</div>

Hello, I’m trying to create a workflow using an event trigger. When I query past events, the query works fine. However, when I save, I get an error saying my query is incorrect. This is my query: matchesPhrase(dt.enti…

---

## [UTC in DQL](https://community.dynatrace.com/t/utc-in-dql/42649)

<div class="topic-metadata">

**Author:** [@eduard\_van\_der1](https://community.dynatrace.com/u/eduard_van_der1)\
**Replies:** 2\
**Last updated:** [April 12, 2025, 4:11pm UTC](https://community.dynatrace.com/t/utc-in-dql/42649 "2025-04-12T16:11:46Z")

</div>

Hi, For my customer we have the scenario where they are spanning multiple timezones, e.g. GMT+1 and GMT+4:30. In splunk each user can setup their preferred timezone: Change user profile settings in Splunk UBA | Splunk …

---

## [DQL query for RPC ServiceEndpoint and ChannelEndPoint](https://community.dynatrace.com/t/dql-query-for-rpc-serviceendpoint-and-channelendpoint/51108)

<div class="topic-metadata">

**Author:** [@bonelli](https://community.dynatrace.com/u/bonelli)\
**Replies:** 3\
**Last updated:** [April 11, 2025, 9:28pm UTC](https://community.dynatrace.com/t/dql-query-for-rpc-serviceendpoint-and-channelendpoint/51108 "2025-04-11T21:28:25Z")

</div>

Hi there, I am using OneAgent SDK in Java to trace some RPC-like spans, and I want to find them later with DQL using a “fetch”. My snippet with the OneAgent SDK is this: OutgoingRemoteCallTracer tracer = OneAgentSdkSi…

---

## [Query Network Zones Using DQL for Enhanced Visibility](https://community.dynatrace.com/t/query-network-zones-using-dql-for-enhanced-visibility/51091)

<div class="topic-metadata">

**Author:** [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Replies:** 5\
**Last updated:** [April 10, 2025, 10:42pm UTC](https://community.dynatrace.com/t/query-network-zones-using-dql-for-enhanced-visibility/51091 "2025-04-10T22:42:06Z")

</div>

Hello, Hopefully a very quick simple question. Are Network Zones available in DQL? We have our Google Clusters set to their own Network Zones and we are having to configure the Fallback setting. I was looking to write …

---

## [Add a variable to the “from:" and "to:” section of a DQL query](https://community.dynatrace.com/t/add-a-variable-to-the-from-and-to-section-of-a-dql-query/50834)

<div class="topic-metadata">

**Author:** [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 2:30pm UTC](https://community.dynatrace.com/t/add-a-variable-to-the-from-and-to-section-of-a-dql-query/50834 "2025-04-09T14:30:18Z")

</div>

Is it possible to add a variable to the “from:" and "to:” section of a DQL query that is fetching logs? Background: I have a dashboard that surfaces info from logs from a specific time of the day each morning. I want t…

---

## [Analyse Called-By Relationships in Spans Using DQL](https://community.dynatrace.com/t/analyse-called-by-relationships-in-spans-using-dql/46179)

<div class="topic-metadata">

**Author:** [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Replies:** 8\
**Last updated:** [April 8, 2025, 5:23pm UTC](https://community.dynatrace.com/t/analyse-called-by-relationships-in-spans-using-dql/46179 "2025-04-08T17:23:40Z")

</div>

The “classic” service / PurePath analysis view has this nice feature of filtering by caller/callee of a service: This is working on Purepaths/traces/spans. I’m trying to do the same thing with a DQL query to answer …

---

## [Service request count and/or service response time splitby caller](https://community.dynatrace.com/t/service-request-count-and-or-service-response-time-splitby-caller/51114)

<div class="topic-metadata">

**Author:** [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 1:09pm UTC](https://community.dynatrace.com/t/service-request-count-and-or-service-response-time-splitby-caller/51114 "2025-04-08T13:09:50Z")

</div>

Would it be possible to create a chart showing response times or request counts for a specific service, broken down by the calling service, using DQL? I have a few use cases where I’d like to visualize the number of req…

---

## [Total time for a dimension regarding the timeseries](https://community.dynatrace.com/t/total-time-for-a-dimension-regarding-the-timeseries/51015)

<div class="topic-metadata">

**Author:** [@Sullivan](https://community.dynatrace.com/u/Sullivan)\
**Replies:** 2\
**Last updated:** [April 7, 2025, 8:14am UTC](https://community.dynatrace.com/t/total-time-for-a-dimension-regarding-the-timeseries/51015 "2025-04-07T08:14:27Z")

</div>

Hello everyone, I want to retrieve the total time of a time series for each service in order to produce a monthly report on the total degradation time per service. Basic DQL query: timeseries interval : 1h, health = a…

---

## [What are the best use cases for Davis forecasting](https://community.dynatrace.com/t/what-are-the-best-use-cases-for-davis-forecasting/51067)

<div class="topic-metadata">

**Author:** [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 5:12pm UTC](https://community.dynatrace.com/t/what-are-the-best-use-cases-for-davis-forecasting/51067 "2025-04-05T17:12:39Z")

</div>

Hi , I am working POC for davis forecasting capability. I built workflow which take last week data points of historical resource utilization ( disk , CPU) and predict about upcoming week. Apart from Disk and CPU , wh…

---

## [In DQL DPL, what is the best way to separate an endpoint and its target?](https://community.dynatrace.com/t/in-dql-dpl-what-is-the-best-way-to-separate-an-endpoint-and-its-target/51078)

<div class="topic-metadata">

**Author:** [@chloe\_bennett](https://community.dynatrace.com/u/chloe_bennett)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 4:47pm UTC](https://community.dynatrace.com/t/in-dql-dpl-what-is-the-best-way-to-separate-an-endpoint-and-its-target/51078 "2025-04-05T16:47:36Z")

</div>

Hello! Using DQL, I’d like to use the “parse” command to break a string like “/api/abc/abc/abc/123” into “endpoint=/api/abc/abc/abc/”, and “target=123”. Ideally, I can apply this to any incoming API call. The strings may…

---

## [Parse JSON log content](https://community.dynatrace.com/t/parse-json-log-content/51029)

<div class="topic-metadata">

**Author:** [@Malachi157](https://community.dynatrace.com/u/Malachi157)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 1:04am UTC](https://community.dynatrace.com/t/parse-json-log-content/51029 "2025-04-05T01:04:02Z")

</div>

Hello, I am trying to parse the scanActionCode and actionStation fields out of the content field in the logs. Here’s a sample log. Please can someone help me with the dql to parse these fields out of the logs? Any help f…

---

## [Can you fetch data that you find in Multidimensional Analysis?](https://community.dynatrace.com/t/can-you-fetch-data-that-you-find-in-multidimensional-analysis/51079)

<div class="topic-metadata">

**Author:** [@chloe\_bennett](https://community.dynatrace.com/u/chloe_bennett)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 11:58pm UTC](https://community.dynatrace.com/t/can-you-fetch-data-that-you-find-in-multidimensional-analysis/51079 "2025-04-04T23:58:52Z")

</div>

Hi, I’m currently using DQL, but I’m looking to fetch data like what I find in the Multidimensional Analysis tool. In particular, I’m trying to get data regarding a service (API calls made, error rates, exceptions, laten…

---

## [How to use DQL to extract a substring after/before/between a certain character?](https://community.dynatrace.com/t/how-to-use-dql-to-extract-a-substring-after-before-between-a-certain-character/51031)

<div class="topic-metadata">

**Author:** [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 9:52pm UTC](https://community.dynatrace.com/t/how-to-use-dql-to-extract-a-substring-after-before-between-a-certain-character/51031 "2025-04-04T21:52:42Z")

</div>

In DQL, splitString and substring couldn’t achieved what I want. Before this, I can always try to be creative and use other kind of DQL function/command or manipulations and achieved what I want. But today there is just…

---

## [How to get network data using DQL](https://community.dynatrace.com/t/how-to-get-network-data-using-dql/51068)

<div class="topic-metadata">

**Author:** [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 9:13pm UTC](https://community.dynatrace.com/t/how-to-get-network-data-using-dql/51068 "2025-04-04T21:13:15Z")

</div>

Hi , I want to see network IO time for service using DQL, how I can do that, not able to see metric for IO time in grail metric list. Is there any way to do this. Please help me on this. Regards, Heramb

---

## [DPL expressions for web address with port](https://community.dynatrace.com/t/dpl-expressions-for-web-address-with-port/51063)

<div class="topic-metadata">

**Author:** [@triptisharma](https://community.dynatrace.com/u/triptisharma)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 4:46pm UTC](https://community.dynatrace.com/t/dpl-expressions-for-web-address-with-port/51063 "2025-04-04T16:46:00Z")

</div>

Hello Everyone, I am trying to find a pattern to match a web address and a port number in the content of a log. For example the log will contain This is a test message for http://ltest-bed.trigun.org for a system test-…

---

## [Bytes into Gigabytes in DQL](https://community.dynatrace.com/t/bytes-into-gigabytes-in-dql/51047)

<div class="topic-metadata">

**Author:** [@Etienne1](https://community.dynatrace.com/u/Etienne1)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 2:35am UTC](https://community.dynatrace.com/t/bytes-into-gigabytes-in-dql/51047 "2025-04-04T02:35:26Z")

</div>

Hello, In DQL, I would like to transform this value, which is in bytes, into gigabytes. I’ve managed to do it but the result isn’t perfect. Is there a better way?

---

## [Tab separated content parsing - some lines may have some columns with null values](https://community.dynatrace.com/t/tab-separated-content-parsing-some-lines-may-have-some-columns-with-null-values/49422)

<div class="topic-metadata">

**Author:** [@vynid](https://community.dynatrace.com/u/vynid)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 1:19pm UTC](https://community.dynatrace.com/t/tab-separated-content-parsing-some-lines-may-have-some-columns-with-null-values/49422 "2025-04-03T13:19:34Z")

</div>

Hi I am having some trouble coming up with a good filter to parse the content field in a tab separated file. eg , the log content can have lines where some columns are null. Assuming the spaces are tabs - first line ha…

---

## [Latency calculation based on logs timestamp](https://community.dynatrace.com/t/latency-calculation-based-on-logs-timestamp/50986)

<div class="topic-metadata">

**Author:** [@VladS](https://community.dynatrace.com/u/VladS)\
**Replies:** 2\
**Last updated:** [April 2, 2025, 5:35am UTC](https://community.dynatrace.com/t/latency-calculation-based-on-logs-timestamp/50986 "2025-04-02T05:35:30Z")

</div>

Hello! I have some logs with this general structure: {timestamp: t1, logpoint:“request-out”, transaction-id: tx1, other stuff} {timestamp: t2, logpoint:“response-in”, transaction-id: tx1, other stuff} {timestamp: t3,…

---

## [Need help in adjust log dashboard records](https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954)

<div class="topic-metadata">

**Author:** [@Mohangurrampati](https://community.dynatrace.com/u/Mohangurrampati)\
**Replies:** 1\
**Last updated:** [April 1, 2025, 10:52pm UTC](https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954 "2025-04-01T22:52:16Z")

</div>

Hi Team, I am trying to adjust logs records in dashboard. we have exist logs records which have deviceid and storenumber and servicename and others. I am setting up new logs have only storenumber and deviceid unique one…

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

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