# DQL

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

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

**Page:** 14

---

## [count\_over\_time equivalent](https://community.dynatrace.com/t/count-over-time-equivalent/50727)

<div class="topic-metadata">

**Author:** [@SimGiants92](https://community.dynatrace.com/u/SimGiants92)\
**Replies:** 1\
**Last updated:** [May 20, 2025, 3:02pm UTC](https://community.dynatrace.com/t/count-over-time-equivalent/50727 "2025-05-20T15:02:19Z")

</div>

I have a duration metric that is populated every time a pipeline runs, i would also like to use this metric to see trends on how often the pipeline is run and the outcome. But because this is not very frequent a simple c…

---

## [Variables: Assign Human-Readable Text to Variables](https://community.dynatrace.com/t/variables-assign-human-readable-text-to-variables/51641)

<div class="topic-metadata">

**Author:** [@VictorRuiz](https://community.dynatrace.com/u/VictorRuiz)\
**Replies:** 2\
**Last updated:** [May 20, 2025, 11:16am UTC](https://community.dynatrace.com/t/variables-assign-human-readable-text-to-variables/51641 "2025-05-20T11:16:13Z")

</div>

Hello everyone, Is it possible to put in a variable a human compressible text instead of a default value? I have a variable that uses the name of the metric, my question is if it is possible to replace the actual value …

---

## [How to use a variable to access an element in an array?](https://community.dynatrace.com/t/how-to-use-a-variable-to-access-an-element-in-an-array/51547)

<div class="topic-metadata">

**Author:** [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Replies:** 1\
**Last updated:** [May 19, 2025, 7:25pm UTC](https://community.dynatrace.com/t/how-to-use-a-variable-to-access-an-element-in-an-array/51547 "2025-05-19T19:25:14Z")

</div>

I have an usecase to access the element from an array based on the value stored in another field. data record(a=array(1,2,3,4,5)) | fieldsAdd random = random() | fieldsAdd random\_nummer = toLong((random\*100)%arraySize(a…

---

## [Javascript action to write result of DQL query to file in a workflow, and then load that data in a Notebook via Javascript action?](https://community.dynatrace.com/t/javascript-action-to-write-result-of-dql-query-to-file-in-a-workflow-and-then-load-that-data-in-a-notebook-via-javascript-action/51647)

<div class="topic-metadata">

**Author:** [@FShimaya](https://community.dynatrace.com/u/FShimaya)\
**Replies:** 3\
**Last updated:** [May 19, 2025, 7:15pm UTC](https://community.dynatrace.com/t/javascript-action-to-write-result-of-dql-query-to-file-in-a-workflow-and-then-load-that-data-in-a-notebook-via-javascript-action/51647 "2025-05-19T19:15:52Z")

</div>

Is it possible to create a workflow where the result of a DQL query is passed to a Javascript action, and that action writes the result to a file somewhere (assume this is SaaS), and then a Notebook displays the data fro…

---

## [I want to create a line chart that displays the failed request count for a selected service](https://community.dynatrace.com/t/i-want-to-create-a-line-chart-that-displays-the-failed-request-count-for-a-selected-service/51654)

<div class="topic-metadata">

**Author:** [@Ganeshmete77](https://community.dynatrace.com/u/Ganeshmete77)\
**Replies:** 2\
**Last updated:** [May 19, 2025, 3:15pm UTC](https://community.dynatrace.com/t/i-want-to-create-a-line-chart-that-displays-the-failed-request-count-for-a-selected-service/51654 "2025-05-19T15:15:47Z")

</div>

I want to create a line chart that displays the failed request count for a selected service I able to achieve the builtin metrics however when i am trying to do same thing with DQL its not returning the result Able to …

---

## [Entity\_tags DQL](https://community.dynatrace.com/t/entity-tags-dql/51689)

<div class="topic-metadata">

**Author:** [@Pablo2](https://community.dynatrace.com/u/Pablo2)\
**Replies:** 1\
**Last updated:** [May 19, 2025, 11:56am UTC](https://community.dynatrace.com/t/entity-tags-dql/51689 "2025-05-19T11:56:50Z")

</div>

I have a dashboard that shows the problems that arrive to a specific alerting profile. The problem is that this alerting profile receives problems from several hosts and I would like to see to which host corresponds eac…

---

## [How to replace DQL dedup filter to use in Matcher DQL in Business event metric extraction](https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478)

<div class="topic-metadata">

**Author:** [@mpundang](https://community.dynatrace.com/u/mpundang)\
**Replies:** 1\
**Last updated:** [May 19, 2025, 8:05am UTC](https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478 "2025-05-19T08:05:32Z")

</div>

Hi everybody! I´m trying to get a Matcher DQL query grouping by trace\_id value. When I use Notebook DQL, dedup is working well. But I need to use the query updating Matcher DQL syntaxis. Dedup is not valid in metric ext…

---

## [Filter Time-Series Data Points by Value Threshold Using DQL](https://community.dynatrace.com/t/filter-time-series-data-points-by-value-threshold-using-dql/50209)

<div class="topic-metadata">

**Author:** [@jegron](https://community.dynatrace.com/u/jegron)\
**Replies:** 8\
**Last updated:** [May 19, 2025, 6:48am UTC](https://community.dynatrace.com/t/filter-time-series-data-points-by-value-threshold-using-dql/50209 "2025-05-19T06:48:33Z")

</div>

Hi! I have a values-type metric. I’d like to display a timeseries that only counts datapoints whose value is greater than (or less than) an arbitrary value. I don’t want to filter an aggregation, but analyze each value …

---

## [Apply Regex on Custom Metric Series Using DQL](https://community.dynatrace.com/t/apply-regex-on-custom-metric-series-using-dql/49374)

<div class="topic-metadata">

**Author:** [@NitinOjha003](https://community.dynatrace.com/u/NitinOjha003)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 9:46pm UTC](https://community.dynatrace.com/t/apply-regex-on-custom-metric-series-using-dql/49374 "2025-05-16T21:46:53Z")

</div>

We are pushing out metrics through Otel into both Newrelic and Dynatrace. We are in process of migrating out our application metric data from newrelic to dynatrace. In NRQL, we use these queries: 1. SELECT sum(\`sling.c…

---

## [Aggregation of data from custom metric](https://community.dynatrace.com/t/aggregation-of-data-from-custom-metric/51552)

<div class="topic-metadata">

**Author:** [@andykrk](https://community.dynatrace.com/u/andykrk)\
**Replies:** 3\
**Last updated:** [May 15, 2025, 10:04am UTC](https://community.dynatrace.com/t/aggregation-of-data-from-custom-metric/51552 "2025-05-15T10:04:09Z")

</div>

Hello, I am currently working on a Dashboard element that requires me to show error data coming from custom AWS metric. Basic DQL query in the Notebook: timeseries sum(\`my\_custom\_aws\_metric\`), interval: 1d, from: "…

---

## [Retrieve Services with Request Names and Failure Rates Using DQL](https://community.dynatrace.com/t/retrieve-services-with-request-names-and-failure-rates-using-dql/49601)

<div class="topic-metadata">

**Author:** [@harry22](https://community.dynatrace.com/u/harry22)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 9:19am UTC](https://community.dynatrace.com/t/retrieve-services-with-request-names-and-failure-rates-using-dql/49601 "2025-05-15T09:19:17Z")

</div>

Hi Team, I am looking for a way in DQL to get the list of services with the request names and failure rate for that request based on management zone or/and tags. And, then compare it with previous week to get the list o…

---

## [How to replace multiple strings in the same Expression/field using replaceString function](https://community.dynatrace.com/t/how-to-replace-multiple-strings-in-the-same-expression-field-using-replacestring-function/51606)

<div class="topic-metadata">

**Author:** [@Kaladhar](https://community.dynatrace.com/u/Kaladhar)\
**Replies:** 3\
**Last updated:** [May 14, 2025, 8:46am UTC](https://community.dynatrace.com/t/how-to-replace-multiple-strings-in-the-same-expression-field-using-replacestring-function/51606 "2025-05-14T08:46:15Z")

</div>

Hi Team, I have this requirement to replace multiple strings in an expression which is having two different substrings. For the Example below: Category field has two results either A or B and I want to replace ‘A’ wit…

---

## [Create a 'timeseries-chart' of totals](https://community.dynatrace.com/t/create-a-timeseries-chart-of-totals/51586)

<div class="topic-metadata">

**Author:** [@Chiel](https://community.dynatrace.com/u/Chiel)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 7:20am UTC](https://community.dynatrace.com/t/create-a-timeseries-chart-of-totals/51586 "2025-05-14T07:20:55Z")

</div>

Hi All, I’d like to create a ‘timeseries-chart’ of totals, for example total number of cars per type, per month. Using ‘interval=30d’ gives me a ‘sliding window’ of totals per 30 days, not per month and not starting the…

---

## [getting value as Null](https://community.dynatrace.com/t/getting-value-as-null/51614)

<div class="topic-metadata">

**Author:** [@sharmas2](https://community.dynatrace.com/u/sharmas2)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 9:14pm UTC](https://community.dynatrace.com/t/getting-value-as-null/51614 "2025-05-13T21:14:36Z")

</div>

I am getting Null value in IPReputationSICategory field .. PFB raw logs:- DstIP=194.20.78.49, SrcPort=40227, DstPort=3257, Protocol=tcp, IngressInterface=DPB1-IN, EgressInterface=DPB1-OUT, IngressZone=CITADEL-Milan-DPB…

---

## [Need a way to use DQL for searching extension logs](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581)

<div class="topic-metadata">

**Author:** [@deni](https://community.dynatrace.com/u/deni)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 1:06am UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581 "2025-05-13T01:06:41Z")

</div>

Hello, I need help with searching logs from the SSL Certificate Monitor extension. I noticed that if the monitored site is down or if there is an error reading the certificate, the certificate just disappears from the d…

---

## [date format](https://community.dynatrace.com/t/date-format/51589)

<div class="topic-metadata">

**Author:** [@sharmas2](https://community.dynatrace.com/u/sharmas2)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 9:50pm UTC](https://community.dynatrace.com/t/date-format/51589 "2025-05-12T21:50:35Z")

</div>

In the query below, I want to add a new column that displays only the date (MM-DD-YYYY) of the ingested logs data. Additionally, I want to include another column named “total” that will show the combined count of Blocked…

---

## [How to add a second condition when using replaceString() function?](https://community.dynatrace.com/t/how-to-add-a-second-condition-when-using-replacestring-function/47497)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 7:53pm UTC](https://community.dynatrace.com/t/how-to-add-a-second-condition-when-using-replacestring-function/47497 "2025-05-12T19:53:11Z")

</div>

Hi I am currently using the replaceString() function to replace some values in a DQL query. How do I specify a second piece of text to be filtered?

---

## [Visualize single value format using DQL](https://community.dynatrace.com/t/visualize-single-value-format-using-dql/51564)

<div class="topic-metadata">

**Author:** [@soportetr](https://community.dynatrace.com/u/soportetr)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 3:08am UTC](https://community.dynatrace.com/t/visualize-single-value-format-using-dql/51564 "2025-05-12T03:08:09Z")

</div>

Hi Everyone, I am currently extracting data from logs to bring them into a dashboard I am working on. Initially, I was going to visualize it in tables as I show in the following image: But then, an idea came to my m…

---

## [How to Retrieve All Entities with a Specific Tag Using DQL](https://community.dynatrace.com/t/how-to-retrieve-all-entities-with-a-specific-tag-using-dql/51499)

<div class="topic-metadata">

**Author:** [@VictorRuiz](https://community.dynatrace.com/u/VictorRuiz)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 11:58am UTC](https://community.dynatrace.com/t/how-to-retrieve-all-entities-with-a-specific-tag-using-dql/51499 "2025-05-06T11:58:17Z")

</div>

Dear DQL Masters, I have the following use case: - I need to know all the entities that have a tag using DQL. For example I need to know all the entities, no matter if they are hosts, services, process groups, syntheti…

---

## [Conditional DQL statements based on value of input variable](https://community.dynatrace.com/t/conditional-dql-statements-based-on-value-of-input-variable/47852)

<div class="topic-metadata">

**Author:** [@HeadScratcher](https://community.dynatrace.com/u/HeadScratcher)\
**Replies:** 3\
**Last updated:** [May 4, 2025, 3:31pm UTC](https://community.dynatrace.com/t/conditional-dql-statements-based-on-value-of-input-variable/47852 "2025-05-04T15:31:30Z")

</div>

I have some DQL that presents a table of data of web service calls. The data can be examined in different ways e.g. by consumer\_id or application\_name etc. To achieve this I either have to edit query each time or crea…

---

## [Davis Analyzer limits - how to chunk up the dimensions](https://community.dynatrace.com/t/davis-analyzer-limits-how-to-chunk-up-the-dimensions/51293)

<div class="topic-metadata">

**Author:** [@brandon\_camp](https://community.dynatrace.com/u/brandon_camp)\
**Replies:** 4\
**Last updated:** [May 2, 2025, 2:56pm UTC](https://community.dynatrace.com/t/davis-analyzer-limits-how-to-chunk-up-the-dimensions/51293 "2025-05-02T14:56:16Z")

</div>

I am implementing a version of a disk capacity Workflow using the one from the Docs as a starting point. In my environment there are 6k Hosts and 60k Disks so if I try to run across all Disks at one go I will get the fol…

---

## [Parse logs to extract field by combined regex](https://community.dynatrace.com/t/parse-logs-to-extract-field-by-combined-regex/51462)

<div class="topic-metadata">

**Author:** [@ArtemR](https://community.dynatrace.com/u/ArtemR)\
**Replies:** 2\
**Last updated:** [May 2, 2025, 1:03pm UTC](https://community.dynatrace.com/t/parse-logs-to-extract-field-by-combined-regex/51462 "2025-05-02T13:03:31Z")

</div>

Hi, Community!Could you please help with field extraction?I have entry like below and need to extract MDCID=D8227-6494143177361398674 to the separate field data record(content = "-2025-05-01 23:02:58.960 INFO MDCID=D822…

---

## [DQL table entity tags](https://community.dynatrace.com/t/dql-table-entity-tags/51423)

<div class="topic-metadata">

**Author:** [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Replies:** 4\
**Last updated:** [April 30, 2025, 9:20am UTC](https://community.dynatrace.com/t/dql-table-entity-tags/51423 "2025-04-30T09:20:57Z")

</div>

Hi, I would like to create a table with tags to an entity, for example, “dt.entity.sql:com\_dynatrace\_extension\_sql-oracle\_host”. fetch \`dt.entity.sql:com\_dynatrace\_extension\_sql-oracle\_host\` | fieldsAdd tags Before qu…

---

## [DQL Query: Filtering Logs by Time Range Across Multiple Days](https://community.dynatrace.com/t/dql-query-filtering-logs-by-time-range-across-multiple-days/44141)

<div class="topic-metadata">

**Author:** [@JerryJ](https://community.dynatrace.com/u/JerryJ)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 2:36am UTC](https://community.dynatrace.com/t/dql-query-filtering-logs-by-time-range-across-multiple-days/44141 "2025-04-30T02:36:38Z")

</div>

Hi everyone, I’m trying to write a DQL query that filters the fetch logs by a specific time range across multiple days. For example, I want to retrieve only the logs from 22:00 to 07:00 for each day in a week, without ha…

---

## [DQL: fetch dt.synthetic.events or dt.synthetic.detailed\_events does not show Browser Synthetic test data. Why?](https://community.dynatrace.com/t/dql-fetch-dt-synthetic-events-or-dt-synthetic-detailed-events-does-not-show-browser-synthetic-test-data-why/51400)

<div class="topic-metadata">

**Author:** [@chloe\_bennett](https://community.dynatrace.com/u/chloe_bennett)\
**Replies:** 2\
**Last updated:** [April 29, 2025, 5:35am UTC](https://community.dynatrace.com/t/dql-fetch-dt-synthetic-events-or-dt-synthetic-detailed-events-does-not-show-browser-synthetic-test-data-why/51400 "2025-04-29T05:35:21Z")

</div>

So, I was trying to create items for a dashboard with DQL that displayed the status of my HTTP and Browser Tests. For my HTTP test, the data I get back is as expected. However, I noticed that the data from my Browser tes…

---

## [Host Availability Dashboard Pane](https://community.dynatrace.com/t/host-availability-dashboard-pane/51404)

<div class="topic-metadata">

**Author:** [@m\_laurie\_az](https://community.dynatrace.com/u/m_laurie_az)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 5:25am UTC](https://community.dynatrace.com/t/host-availability-dashboard-pane/51404 "2025-04-29T05:25:11Z")

</div>

I’m having trouble creating a pane for a help desk that shows when a host goes down. The problem I seem to be running into is that when a host goes down for something like a power failure, the agent stops reporting, and …

---

## [How do I use a value stored in a variable to access an element in an array?](https://community.dynatrace.com/t/how-do-i-use-a-value-stored-in-a-variable-to-access-an-element-in-an-array/51372)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 4\
**Last updated:** [April 28, 2025, 6:25am UTC](https://community.dynatrace.com/t/how-do-i-use-a-value-stored-in-a-variable-to-access-an-element-in-an-array/51372 "2025-04-28T06:25:43Z")

</div>

Within my environment, I have hosts with various tags against them. I’m looking for a tag which contains: DEPARTMENT: and this tag can be in index 5 or 4, it is random. Here is my code so far: timeseries { percent = …

---

## [any DQL to fetch Synthetic monitor name, URL ?](https://community.dynatrace.com/t/any-dql-to-fetch-synthetic-monitor-name-url/51377)

<div class="topic-metadata">

**Author:** [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Replies:** 1\
**Last updated:** [April 25, 2025, 8:08pm UTC](https://community.dynatrace.com/t/any-dql-to-fetch-synthetic-monitor-name-url/51377 "2025-04-25T20:08:46Z")

</div>

Can someone help to pull the synthetic monitor details from DQL ( Name, Url, frequency, locations)

---

## [Replace null Values with previous non-Null value in an array](https://community.dynatrace.com/t/replace-null-values-with-previous-non-null-value-in-an-array/51347)

<div class="topic-metadata">

**Author:** [@SimGiants92](https://community.dynatrace.com/u/SimGiants92)\
**Replies:** 4\
**Last updated:** [April 25, 2025, 6:52pm UTC](https://community.dynatrace.com/t/replace-null-values-with-previous-non-null-value-in-an-array/51347 "2025-04-25T18:52:43Z")

</div>

I have arrays that contain a lot of null values but i would like to replace them not with a single value but instead with whatever previous value in the array is not null, is this possible in DQL?

---

## [Variable based on Tags in Segments](https://community.dynatrace.com/t/variable-based-on-tags-in-segments/51360)

<div class="topic-metadata">

**Author:** [@StephenHughes](https://community.dynatrace.com/u/StephenHughes)\
**Replies:** 2\
**Last updated:** [April 24, 2025, 7:59pm UTC](https://community.dynatrace.com/t/variable-based-on-tags-in-segments/51360 "2025-04-24T19:59:48Z")

</div>

I would like to create a variable to be used in a segment that lets me filter based on tags. The idea is the tag is \[AWS\]ID and the values are X, Y, Z, I want to be able to filter by X,Y,Z and get their related hosts. I …

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

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