# DQL

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

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

**Page:** 24

---

## [DQL matcher in business events](https://community.dynatrace.com/t/dql-matcher-in-business-events/43368)

<div class="topic-metadata">

**Author:** [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Replies:** 5\
**Last updated:** [April 11, 2024, 11:07am UTC](https://community.dynatrace.com/t/dql-matcher-in-business-events/43368 "2024-04-11T11:07:50Z")

</div>

Hello, how do you use “DQL matcher in business events” when it is necessary to compare a number? for example: and “matchesPhrase(toString(step), “1002”)” works but

---

## [convert DQL log  query to timeseries](https://community.dynatrace.com/t/convert-dql-log-query-to-timeseries/45077)

<div class="topic-metadata">

**Author:** [@roberto\_camp1](https://community.dynatrace.com/u/roberto_camp1)\
**Replies:** 3\
**Last updated:** [April 10, 2024, 6:30pm UTC](https://community.dynatrace.com/t/convert-dql-log-query-to-timeseries/45077 "2024-04-10T18:30:36Z")

</div>

So far I have the following DQL query that works: \`\`\` fetch logs | filter dt.entity.kubernetes\_cluster == “KUBERNETES\_CLUSTER-ABCDEFG” or in(dt.entity.kubernetes\_cluster, “KUBERNETES\_CLUSTER-ABCDEFG”) | summarize tot…

---

## [Parse JSON in Dynatrace DQL Queries](https://community.dynatrace.com/t/parse-json-in-dynatrace-dql-queries/45049)

<div class="topic-metadata">

**Author:** [@brett\_schubach1](https://community.dynatrace.com/u/brett_schubach1)\
**Replies:** 3\
**Last updated:** [April 9, 2024, 7:51am UTC](https://community.dynatrace.com/t/parse-json-in-dynatrace-dql-queries/45049 "2024-04-09T07:51:32Z")

</div>

Summary: Dynatrace Query Language (DQL) supports JSON parsing for logs and events. This thread shows how to extract fields, handle arrays, and apply filters for advanced analytics. Hi All, I need some help as I am tryi…

---

## [How can I capture the products from a shopping cart if it has 2 or more products selected, from the json with grail](https://community.dynatrace.com/t/how-can-i-capture-the-products-from-a-shopping-cart-if-it-has-2-or-more-products-selected-from-the-json-with-grail/44985)

<div class="topic-metadata">

**Author:** [@dff](https://community.dynatrace.com/u/dff)\
**Replies:** 1\
**Last updated:** [April 3, 2024, 8:30pm UTC](https://community.dynatrace.com/t/how-can-i-capture-the-products-from-a-shopping-cart-if-it-has-2-or-more-products-selected-from-the-json-with-grail/44985 "2024-04-03T20:30:29Z")

</div>

Hello, I have a concern. I have the following Quuery. Which the product field brings in json, but separating it only allows me from the first block only The idea is that I separate them into 2 or 3 results depending on…

---

## [To verify which bucket the records are in.](https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929)

<div class="topic-metadata">

**Author:** [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 6:44pm UTC](https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929 "2024-04-01T18:44:11Z")

</div>

Hello, I have the following issue: how can I verify which logs or records are being stored in the buckets and ensure that they are being stored in the correct bucket? Another question, and to ingest bizevents into an…

---

## [Log processing IP attribute manipulation](https://community.dynatrace.com/t/log-processing-ip-attribute-manipulation/44900)

<div class="topic-metadata">

**Author:** [@AsafAx](https://community.dynatrace.com/u/AsafAx)\
**Replies:** 2\
**Last updated:** [March 30, 2024, 10:37am UTC](https://community.dynatrace.com/t/log-processing-ip-attribute-manipulation/44900 "2024-03-30T10:37:09Z")

</div>

Hello all, I’m currently parsing the “content” of logs and splitting it into different fields, one of which is called “srcaddr”. I want to change the IP addresses so that they show the name of the source, instead of th…

---

## [Summarize terms in a record](https://community.dynatrace.com/t/summarize-terms-in-a-record/44886)

<div class="topic-metadata">

**Author:** [@wellpplava](https://community.dynatrace.com/u/wellpplava)\
**Replies:** 9\
**Last updated:** [March 29, 2024, 6:31am UTC](https://community.dynatrace.com/t/summarize-terms-in-a-record/44886 "2024-03-29T06:31:23Z")

</div>

Hello! I have log lines when a customer makes a purchase. This log contains the ID of the purchased products. I would like to be able to quantify the best-selling products of the day. Example: message: TUP15451, TUP41…

---

## [Logical operator similar to Prometheus "unless" in DQL](https://community.dynatrace.com/t/logical-operator-similar-to-prometheus-unless-in-dql/44804)

<div class="topic-metadata">

**Author:** [@cabeywardhana](https://community.dynatrace.com/u/cabeywardhana)\
**Replies:** 4\
**Last updated:** [March 28, 2024, 2:56am UTC](https://community.dynatrace.com/t/logical-operator-similar-to-prometheus-unless-in-dql/44804 "2024-03-28T02:56:00Z")

</div>

I have Prometheus query where it has “unless” logical operator to DQL. (Ref: logical-set-binary-operators ) Is there a similar logical operator which I could utilze in DQL? If not, how can I use existing features to a…

---

## [Parsing a JSON with special characters.](https://community.dynatrace.com/t/parsing-a-json-with-special-characters/44867)

<div class="topic-metadata">

**Author:** [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Replies:** 2\
**Last updated:** [March 27, 2024, 7:27pm UTC](https://community.dynatrace.com/t/parsing-a-json-with-special-characters/44867 "2024-03-27T19:27:40Z")

</div>

Hello, I have the following response that I need to parse, it’s basically a JSON object where I need to retrieve the field ‘x-real-ip,’ but Dynatrace marks the character ‘-’ as invalid. "headers": { "accept": …

---

## [Workflow DQL for problems opened a few minutes ago](https://community.dynatrace.com/t/workflow-dql-for-problems-opened-a-few-minutes-ago/44880)

<div class="topic-metadata">

**Author:** [@AsafAx](https://community.dynatrace.com/u/AsafAx)\
**Replies:** 4\
**Last updated:** [March 27, 2024, 1:58pm UTC](https://community.dynatrace.com/t/workflow-dql-for-problems-opened-a-few-minutes-ago/44880 "2024-03-27T13:58:08Z")

</div>

Hello community! My end goal is to trigger a Jenkins job to restart entities using the Dynatrace “root\_cause\_entity\_name”. I want to use a Workflow to send the root cause of problems that are: Currently open Have been…

---

## [Change column name and value for money](https://community.dynatrace.com/t/change-column-name-and-value-for-money/42040)

<div class="topic-metadata">

**Author:** [@WellPP](https://community.dynatrace.com/u/WellPP)\
**Replies:** 6\
**Last updated:** [March 26, 2024, 8:08am UTC](https://community.dynatrace.com/t/change-column-name-and-value-for-money/42040 "2024-03-26T08:08:02Z")

</div>

1. Is it possible to change the column name? Maybe it’s possible to add a title to the table? 2. Is it possible to change the display to total in dollars?

---

## [DQL  to pull vulnerabilities for each host](https://community.dynatrace.com/t/dql-to-pull-vulnerabilities-for-each-host/44614)

<div class="topic-metadata">

**Author:** [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Replies:** 7\
**Last updated:** [March 25, 2024, 12:52pm UTC](https://community.dynatrace.com/t/dql-to-pull-vulnerabilities-for-each-host/44614 "2024-03-25T12:52:41Z")

</div>

Hi, Do we have DQL functionality available to pull vulnerabilities for each host? Let me know if anyone has done it. I am looking for a DQL query to fetch vulnerabilities for each host along with other details. Thanks…

---

## [DQL - Time interval recording without data](https://community.dynatrace.com/t/dql-time-interval-recording-without-data/44341)

<div class="topic-metadata">

**Author:** [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Replies:** 4\
**Last updated:** [March 25, 2024, 9:18am UTC](https://community.dynatrace.com/t/dql-time-interval-recording-without-data/44341 "2024-03-25T09:18:00Z")

</div>

Hi there, I’m currently working on BizEvent processing. I would like to get the number of occurrences of the selected event at 1 minute intervals. Here is my request: fetch bizevents | fieldsAdd event.type == "TEST" …

---

## [Running DQL in Workflow - How to make task fail if no results come back](https://community.dynatrace.com/t/running-dql-in-workflow-how-to-make-task-fail-if-no-results-come-back/42957)

<div class="topic-metadata">

**Author:** [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Replies:** 2\
**Last updated:** [March 22, 2024, 10:17am UTC](https://community.dynatrace.com/t/running-dql-in-workflow-how-to-make-task-fail-if-no-results-come-back/42957 "2024-03-22T10:17:15Z")

</div>

Hi I have a use case where my workflow must wait until a certain DQL query returns data. My thought was to use a DQL Task and let it “retry on error”. The problem is that I cant specify my “success condition” of the DQL…

---

## [Host availability on Notebookes, by host name](https://community.dynatrace.com/t/host-availability-on-notebookes-by-host-name/44796)

<div class="topic-metadata">

**Author:** [@ArtuD](https://community.dynatrace.com/u/ArtuD)\
**Replies:** 6\
**Last updated:** [March 21, 2024, 7:54pm UTC](https://community.dynatrace.com/t/host-availability-on-notebookes-by-host-name/44796 "2024-03-21T19:54:19Z")

</div>

I want to create a notebook that shows me the availability of hosts, separated by the name of the hosts, but I can only do this using host.entity, how could I create this?

---

## [why do matchesValue and matchesPhrase give different results in this case?](https://community.dynatrace.com/t/why-do-matchesvalue-and-matchesphrase-give-different-results-in-this-case/44772)

<div class="topic-metadata">

**Author:** [@GerryIsHere](https://community.dynatrace.com/u/GerryIsHere)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 8:45pm UTC](https://community.dynatrace.com/t/why-do-matchesvalue-and-matchesphrase-give-different-results-in-this-case/44772 "2024-03-20T20:45:20Z")

</div>

Here are two queries, I don’t understand why the results are different (same time period 24 hours): fetch logs | filter matchesPhrase(host.name, “tar04\*”) | summarize collectDistinct(host.name) tar045.dcmax.local ta…

---

## [One missing timeseries metric in DQL query, result in "There are no records" for the whole query](https://community.dynatrace.com/t/one-missing-timeseries-metric-in-dql-query-result-in-there-are-no-records-for-the-whole-query/44638)

<div class="topic-metadata">

**Author:** [@cabeywardhana](https://community.dynatrace.com/u/cabeywardhana)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 8:50pm UTC](https://community.dynatrace.com/t/one-missing-timeseries-metric-in-dql-query-result-in-there-are-no-records-for-the-whole-query/44638 "2024-03-18T20:50:00Z")

</div>

I have a complex query which is incorporating multiple metrics in one DQL query via multiple joins. My issue is that if one of the metric(the whole timeseries) is missing, the whole query returns “There are no records” …

---

## [Correlate two results logs](https://community.dynatrace.com/t/correlate-two-results-logs/44664)

<div class="topic-metadata">

**Author:** [@wellpplava](https://community.dynatrace.com/u/wellpplava)\
**Replies:** 1\
**Last updated:** [March 14, 2024, 6:06pm UTC](https://community.dynatrace.com/t/correlate-two-results-logs/44664 "2024-03-14T18:06:08Z")

</div>

Hello! I have a use case that I need help with. I need to list the customers who made a purchase, but informing whether there was an error in the journey or not. I use the following query to find all purchases made: f…

---

## [How to give custom timeframe for the timeseries while writing DQL?](https://community.dynatrace.com/t/how-to-give-custom-timeframe-for-the-timeseries-while-writing-dql/44580)

<div class="topic-metadata">

**Author:** [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:18am UTC](https://community.dynatrace.com/t/how-to-give-custom-timeframe-for-the-timeseries-while-writing-dql/44580 "2024-03-12T06:18:39Z")

</div>

Hey Team, I have a quick question to the community. How can we add custom timeframe for timeseries query (DQL)? It would help me in creating some workflows for the same. My use case is to create a workflow based on the …

---

## [Fetch logs from timestamp with filters](https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526)

<div class="topic-metadata">

**Author:** [@AlexisGND](https://community.dynatrace.com/u/AlexisGND)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 10:31am UTC](https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526 "2024-03-11T10:31:12Z")

</div>

Hi, I created a dashboard with is counting the number of raw per hours with personnalized ingested data. I have a filter that contains numbers representing the day : And my wish is to set the timestamp day filter…

---

## [DQL parsing on a xmlns log](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434)

<div class="topic-metadata">

**Author:** [@Alexis1](https://community.dynatrace.com/u/Alexis1)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 12:21pm UTC](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434 "2024-03-05T12:21:34Z")

</div>

Hello community, I have difficulties to parse xmlns structure of log with DQL, the purpose of parsing this is obtain the values of xml attributes, is there any of you that have experience with this. I will copy an examp…

---

## [Help with RUM Query](https://community.dynatrace.com/t/help-with-rum-query/44400)

<div class="topic-metadata">

**Author:** [@ash2](https://community.dynatrace.com/u/ash2)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 7:45am UTC](https://community.dynatrace.com/t/help-with-rum-query/44400 "2024-03-04T07:45:13Z")

</div>

Hi Team, I am writing a query to extract a response time of each user actions. The query I tried is as below but it is giving an error at-“(responseEnd - responseStart)” select distinct name as “User Actions”,count(\*) …

---

## [Correlate Multiple Query Results with Dynatrace DQL](https://community.dynatrace.com/t/correlate-multiple-query-results-with-dynatrace-dql/44364)

<div class="topic-metadata">

**Author:** [@wellpplava](https://community.dynatrace.com/u/wellpplava)\
**Replies:** 2\
**Last updated:** [February 29, 2024, 4:18pm UTC](https://community.dynatrace.com/t/correlate-multiple-query-results-with-dynatrace-dql/44364 "2024-02-29T16:18:28Z")

</div>

Hello! I need to relate two events. I have logs of two events: 1. Errors in my store cart (contains customer ID) 2. Checkout in my cart (contains customer ID) I need two views: 1. Customers who completed their purc…

---

## [rename the result of replaceString](https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335)

<div class="topic-metadata">

**Author:** [@GerryIsHere](https://community.dynatrace.com/u/GerryIsHere)\
**Replies:** 4\
**Last updated:** [February 28, 2024, 7:32pm UTC](https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335 "2024-02-28T19:32:46Z")

</div>

I have this query fetch logs | filter matchesValue(host.name, “dar\*”) and matchesPhrase(log.source, “mydomain”) and matchesPhrase(log.source, “diagnostic”) and matchesValue(status, “ERROR”) | fieldsAdd replaceStrin…

---

## [DQL filter events by management zone](https://community.dynatrace.com/t/dql-filter-events-by-management-zone/44332)

<div class="topic-metadata">

**Author:** [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 11:03pm UTC](https://community.dynatrace.com/t/dql-filter-events-by-management-zone/44332 "2024-02-27T23:03:57Z")

</div>

Hi, Do we have a way filter events by management zone? Thank you! Best regards

---

## [Creating dashboard for container events from a container group](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223)

<div class="topic-metadata">

**Author:** [@kasdev](https://community.dynatrace.com/u/kasdev)\
**Replies:** 6\
**Last updated:** [February 23, 2024, 11:38am UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223 "2024-02-23T11:38:15Z")

</div>

hello. i need to create a dashboard for all container events in a specific container group. i guess i need to use dql but i dont know how to do it. lets assume container group name is mycontainergroup. do you have any…

---

## [Correlate two log sources](https://community.dynatrace.com/t/correlate-two-log-sources/43950)

<div class="topic-metadata">

**Author:** [@wellpplava](https://community.dynatrace.com/u/wellpplava)\
**Replies:** 4\
**Last updated:** [February 22, 2024, 1:21am UTC](https://community.dynatrace.com/t/correlate-two-log-sources/43950 "2024-02-22T01:21:53Z")

</div>

Guys, would this be possible? When a user registers on our website or app, a log line with their ID is generated. We were able to find out whether it was through the website or app because of the service that generated …

---

## [DQL snippit code reuse](https://community.dynatrace.com/t/dql-snippit-code-reuse/44112)

<div class="topic-metadata">

**Author:** [@Keith\_Harding](https://community.dynatrace.com/u/Keith_Harding)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 10:26pm UTC](https://community.dynatrace.com/t/dql-snippit-code-reuse/44112 "2024-02-21T22:26:22Z")

</div>

Hi, In Splunk SPL is their equivalent of DQL. In Splunk I can save a piece of code (maybe just a line or several) as a “macro” and then reuse that in other code just by referencing it in other code. Meaning if I chang…

---

## [DQL, DPL, Processing Pipleline of Logs, Bizevents...OH MY!!](https://community.dynatrace.com/t/dql-dpl-processing-pipleline-of-logs-bizevents-oh-my/42932)

<div class="topic-metadata">

**Author:** [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 2:13am UTC](https://community.dynatrace.com/t/dql-dpl-processing-pipleline-of-logs-bizevents-oh-my/42932 "2024-02-21T02:13:11Z")

</div>

Hello, I’m really struggling in getting all the different “D”-Languages and their usage in different scenarios right. Is it just me who thinks this is extremely confusing? Example: I can “easily” (ha!) create a DQL st…

---

## [Fix Grail API Data Retrieval Errors in Power Automate](https://community.dynatrace.com/t/fix-grail-api-data-retrieval-errors-in-power-automate/41776)

<div class="topic-metadata">

**Author:** [@mark\_forrester](https://community.dynatrace.com/u/mark_forrester)\
**Replies:** 1\
**Last updated:** [February 16, 2024, 9:00pm UTC](https://community.dynatrace.com/t/fix-grail-api-data-retrieval-errors-in-power-automate/41776 "2024-02-16T21:00:44Z")

</div>

This is more an answer than a question as it took some time to resolve and the fix was simple once implemented. Q - My PowerAutomate flow is failing intermittently, the response on the API to the HTTP GET request was an…

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

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