# DQL

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

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

**Page:** 22

---

## [Service Request metrics using DQL](https://community.dynatrace.com/t/service-request-metrics-using-dql/46130)

<div class="topic-metadata">

**Author:** [@JB](https://community.dynatrace.com/u/JB)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 7:22pm UTC](https://community.dynatrace.com/t/service-request-metrics-using-dql/46130 "2024-07-23T19:22:34Z")

</div>

Hi, I´m getting different values on metrics migrated to DQL comparing with the classic using Data Explorer. The metric in Data Explorer is this: And this is the metric migrated using Data Explorer: Using the sam…

---

## [DQL+ DPL summarize](https://community.dynatrace.com/t/dql-dpl-summarize/46727)

<div class="topic-metadata">

**Author:** [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 3:10pm UTC](https://community.dynatrace.com/t/dql-dpl-summarize/46727 "2024-07-23T15:10:59Z")

</div>

Good afternoon community, I’m trying to summarize the count of some exception - everything it’s easy but some exception may vary based on some ID contained in the text. For example: Inbound processing in endpoint at /I…

---

## [plot linechart from log metric with countDistinctExact](https://community.dynatrace.com/t/plot-linechart-from-log-metric-with-countdistinctexact/46670)

<div class="topic-metadata">

**Author:** [@\_r\_k](https://community.dynatrace.com/u/_r_k)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 11:25am UTC](https://community.dynatrace.com/t/plot-linechart-from-log-metric-with-countdistinctexact/46670 "2024-07-19T11:25:43Z")

</div>

I cannot figure out how to introduce custom aggregation to log metrics for dashboarding with dynamic timeframe (plot linechart) use for example countDistinctExact timeseries log\_custom\_metric\_value = count(log.custom.m…

---

## [How to calculate availibility score with timeseries?](https://community.dynatrace.com/t/how-to-calculate-availibility-score-with-timeseries/46605)

<div class="topic-metadata">

**Author:** [@jegron](https://community.dynatrace.com/u/jegron)\
**Replies:** 4\
**Last updated:** [July 18, 2024, 6:57am UTC](https://community.dynatrace.com/t/how-to-calculate-availibility-score-with-timeseries/46605 "2024-07-18T06:57:32Z")

</div>

Hi, I would like to calculate availability for Database : It must be shown in the ratio when there is no data or Offline Database : How can I do it with DQL? Julien

---

## [DQL for filtering kubernetes pods by annotations](https://community.dynatrace.com/t/dql-for-filtering-kubernetes-pods-by-annotations/46624)

<div class="topic-metadata">

**Author:** [@roberto\_camp1](https://community.dynatrace.com/u/roberto_camp1)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 4:22pm UTC](https://community.dynatrace.com/t/dql-for-filtering-kubernetes-pods-by-annotations/46624 "2024-07-16T16:22:45Z")

</div>

I am trying to use DQL to filter workloads in my EKS environment by certain pod annotations. So far I have this: fetch dt.entity.cloud\_application\_instance, from: -30m | fields id, pod.id = id, pod.name = entity.name, …

---

## [Combine Multiple DQL Results in a Single Dashboard Tile](https://community.dynatrace.com/t/combine-multiple-dql-results-in-a-single-dashboard-tile/46580)

<div class="topic-metadata">

**Author:** [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 11:42pm UTC](https://community.dynatrace.com/t/combine-multiple-dql-results-in-a-single-dashboard-tile/46580 "2024-07-14T23:42:18Z")

</div>

Hi, I have 10 DQLs to get JVM metrics performance and want to display these 10 dql results in single tile of dashboard, is it possible to do it?? I do not want separate tile for reach metric on dashboard. Please help …

---

## [How to write DQL to comparison jvm metric data of two timeframe](https://community.dynatrace.com/t/how-to-write-dql-to-comparison-jvm-metric-data-of-two-timeframe/46497)

<div class="topic-metadata">

**Author:** [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Replies:** 5\
**Last updated:** [July 12, 2024, 12:21pm UTC](https://community.dynatrace.com/t/how-to-write-dql-to-comparison-jvm-metric-data-of-two-timeframe/46497 "2024-07-12T12:21:00Z")

</div>

Hi , I want to write one DQL which can compare jvm metric i.e. dt.runtime.jvm.threads.count data of two timeframe. Can somebody please how I can use lookup to join the two data set here. I want to show metric name and …

---

## [DQL for AWS CloudWatch Tags](https://community.dynatrace.com/t/dql-for-aws-cloudwatch-tags/46342)

<div class="topic-metadata">

**Author:** [@sebastiaan\_holl](https://community.dynatrace.com/u/sebastiaan_holl)\
**Replies:** 2\
**Last updated:** [July 9, 2024, 7:24am UTC](https://community.dynatrace.com/t/dql-for-aws-cloudwatch-tags/46342 "2024-07-09T07:24:20Z")

</div>

Hello It is possible to gather tags with DQL for registered entities. Our challenge is getting AWS tags for items that are shown in the AWS Classic and Clouds (new) dashboards. So for items on which there is no OneAgent…

---

## [Using DQL or notebooks to pull the friendly name of relationships?](https://community.dynatrace.com/t/using-dql-or-notebooks-to-pull-the-friendly-name-of-relationships/46448)

<div class="topic-metadata">

**Author:** [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Replies:** 3\
**Last updated:** [July 8, 2024, 1:46pm UTC](https://community.dynatrace.com/t/using-dql-or-notebooks-to-pull-the-friendly-name-of-relationships/46448 "2024-07-08T13:46:55Z")

</div>

Is anyone aware of a DQL statement or notebook that can be formulated to dynamically give the friendly name of entities based off relationships? For Example HostIDXXXXXX to/from relationships in the api we get the Dynat…

---

## [Divide each value by a specific number in an array - DQL](https://community.dynatrace.com/t/divide-each-value-by-a-specific-number-in-an-array-dql/46492)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 1\
**Last updated:** [July 7, 2024, 7:56pm UTC](https://community.dynatrace.com/t/divide-each-value-by-a-specific-number-in-an-array-dql/46492 "2024-07-07T19:56:56Z")

</div>

I have the following DQL query: timeseries interval: 1d, usage = sum(dt.billing.full\_stack\_monitoring.usage), from: -7d, to: now() Essentially, what I want is to divide each value within the array by a specific amount …

---

## [Using Calculated Service Metrics with Grail](https://community.dynatrace.com/t/using-calculated-service-metrics-with-grail/42857)

<div class="topic-metadata">

**Author:** [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Replies:** 8\
**Last updated:** [July 2, 2024, 7:16pm UTC](https://community.dynatrace.com/t/using-calculated-service-metrics-with-grail/42857 "2024-07-02T19:16:41Z")

</div>

Is it possible to use the Calculated Service Metrics in Grail just like we do in data explorer? When testing we are receiving the error “There isn’t a parameter calc.” Example: timeseries usage=avg(calc:name\_metric), b…

---

## [Variable: display only part of the value](https://community.dynatrace.com/t/variable-display-only-part-of-the-value/46362)

<div class="topic-metadata">

**Author:** [@aled](https://community.dynatrace.com/u/aled)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 8:43pm UTC](https://community.dynatrace.com/t/variable-display-only-part-of-the-value/46362 "2024-06-28T20:43:24Z")

</div>

I have a variable defined as such: fetch \`dt.entity.cloudsqs\` | fields tags | expand tags | filter contains(tags, "\[AWS\]environment") | sort tags asc | summarize environments = collectDistinct(tags) which is practical …

---

## [How to get different metrics in a different row while creating a dashboard using DQL](https://community.dynatrace.com/t/how-to-get-different-metrics-in-a-different-row-while-creating-a-dashboard-using-dql/46320)

<div class="topic-metadata">

**Author:** [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 4:19pm UTC](https://community.dynatrace.com/t/how-to-get-different-metrics-in-a-different-row-while-creating-a-dashboard-using-dql/46320 "2024-06-28T16:19:56Z")

</div>

So I have multiple metrics from SQL data source extn and I need to put them in rows and show the value. I am doing it like below. But this is pulling data in one single row, instead of two rows. Can you please suggest h…

---

## [Test if a dashboard variable is set before using it](https://community.dynatrace.com/t/test-if-a-dashboard-variable-is-set-before-using-it/45335)

<div class="topic-metadata">

**Author:** [@GerardJ](https://community.dynatrace.com/u/GerardJ)\
**Replies:** 7\
**Last updated:** [June 21, 2024, 8:34pm UTC](https://community.dynatrace.com/t/test-if-a-dashboard-variable-is-set-before-using-it/45335 "2024-06-21T20:34:54Z")

</div>

Hello I’m using variables on dashboard to filter in DQL. I would like the filter command to be applied only if the variable has a selected value : if no value is selected for the variable, the variable isn’t used to fi…

---

## [process\_group\_instance missing runs\_on property](https://community.dynatrace.com/t/process-group-instance-missing-runs-on-property/46233)

<div class="topic-metadata">

**Author:** [@strudeau](https://community.dynatrace.com/u/strudeau)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 3:59pm UTC](https://community.dynatrace.com/t/process-group-instance-missing-runs-on-property/46233 "2024-06-20T15:59:01Z")

</div>

Hello, I am trying to run the following DQL query to retrieve the runs\_on property for all my process\_group\_instance. I am hoping to be able to get information about the host on which the process\_group\_instance runs. Whe…

---

## [Custom Log ingestion Dynatrace](https://community.dynatrace.com/t/custom-log-ingestion-dynatrace/46155)

<div class="topic-metadata">

**Author:** [@Piermarco](https://community.dynatrace.com/u/Piermarco)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 6:18am UTC](https://community.dynatrace.com/t/custom-log-ingestion-dynatrace/46155 "2024-06-19T06:18:58Z")

</div>

Hi all, My team and I have successfully processed a custom JSON and sent it to Dynatrace using the log ingestion POST API. We need this data for offline monitoring of an application. We are now starting to use GRAIL to…

---

## [Measure Log Ingest Performance in Dynatrace Grail](https://community.dynatrace.com/t/measure-log-ingest-performance-in-dynatrace-grail/41365)

<div class="topic-metadata">

**Author:** [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Replies:** 3\
**Last updated:** [June 17, 2024, 2:38pm UTC](https://community.dynatrace.com/t/measure-log-ingest-performance-in-dynatrace-grail/41365 "2024-06-17T14:38:34Z")

</div>

I’m seeking a DQL query that provides detailed insights into log ingest. Currently, without Grail, we can observe log volume based on the number of log lines. However, Grail measures logs by size. Although the default Gr…

---

## [With DQL, Chart / alert on if a host or log source has not recieved any logs over a period of time.](https://community.dynatrace.com/t/with-dql-chart-alert-on-if-a-host-or-log-source-has-not-recieved-any-logs-over-a-period-of-time/46060)

<div class="topic-metadata">

**Author:** [@DanielDubs](https://community.dynatrace.com/u/DanielDubs)\
**Replies:** 2\
**Last updated:** [June 14, 2024, 7:21pm UTC](https://community.dynatrace.com/t/with-dql-chart-alert-on-if-a-host-or-log-source-has-not-recieved-any-logs-over-a-period-of-time/46060 "2024-06-14T19:21:35Z")

</div>

Hello all, I’m looking for a way to chart if a log source has not received any logs in over two hours, and possibly alert on it using DQL. I would also like to do that from the host level, basically doing the same thin…

---

## [How to build a DQL query that accounts for timestamp discrepancies](https://community.dynatrace.com/t/how-to-build-a-dql-query-that-accounts-for-timestamp-discrepancies/46109)

<div class="topic-metadata">

**Author:** [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 4:17pm UTC](https://community.dynatrace.com/t/how-to-build-a-dql-query-that-accounts-for-timestamp-discrepancies/46109 "2024-06-14T16:17:30Z")

</div>

Greetings, I am capturing the JSON response body of a transaction as a bizEvent in Dynatrace. Everything looks good except for one discrepancy that I need help accounting for. As you can see from the screenshot below oc…

---

## [Where is a -\> operator documented?](https://community.dynatrace.com/t/where-is-a-operator-documented/46127)

<div class="topic-metadata">

**Author:** [@MartinMarko](https://community.dynatrace.com/u/MartinMarko)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 3:24pm UTC](https://community.dynatrace.com/t/where-is-a-operator-documented/46127 "2024-06-14T15:24:15Z")

</div>

On web page www.dynatrace.com, there is a picture with the query I am looking for the documentation for \` → \` operator, because I am getting an error

---

## [DQL Processing Rule with Brackets in JSON](https://community.dynatrace.com/t/dql-processing-rule-with-brackets-in-json/46054)

<div class="topic-metadata">

**Author:** [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 7:11am UTC](https://community.dynatrace.com/t/dql-processing-rule-with-brackets-in-json/46054 "2024-06-12T07:11:45Z")

</div>

Hello Community, I have this DQL Processing issue: For this log { "event.type": "LOG", "content": "{\\"clientId\\":\\"35edd03e-84cd-4c7b-831d-e8318fbcfc06\\",\\"context\\":\\"ValidationService\\",\\"extras\\":{\\"errorCode\\":\\"P…

---

## [DQL content field, where is the '\\n' coming from?](https://community.dynatrace.com/t/dql-content-field-where-is-the-n-coming-from/46001)

<div class="topic-metadata">

**Author:** [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 1:22pm UTC](https://community.dynatrace.com/t/dql-content-field-where-is-the-n-coming-from/46001 "2024-06-11T13:22:14Z")

</div>

I noticed this \\n in my DQL result, know of where it is coming from / why it is there? My log ingest was just ‘This is a log string’ which is that the content shows when you expand the record but the content fields shows…

---

## [Dashboard Variable with Multiple Filters](https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958)

<div class="topic-metadata">

**Author:** [@cwinkler109](https://community.dynatrace.com/u/cwinkler109)\
**Replies:** 1\
**Last updated:** [June 10, 2024, 6:19pm UTC](https://community.dynatrace.com/t/dashboard-variable-with-multiple-filters/45958 "2024-06-10T18:19:53Z")

</div>

I built a dashboard that surfaces website traffic patterns from info in our log events. Is it possible to configure a dashboard variable to filter the dashboard panels for either of these three categories of traffic: Rea…

---

## [Cluster 1.293: Settings audit events in Grail](https://community.dynatrace.com/t/cluster-1-293-settings-audit-events-in-grail/45950)

<div class="topic-metadata">

**Author:** [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Replies:** 3\
**Last updated:** [June 9, 2024, 11:34pm UTC](https://community.dynatrace.com/t/cluster-1-293-settings-audit-events-in-grail/45950 "2024-06-09T23:34:19Z")

</div>

I see this in the release notes for cluster 1.293. This is a great step forward here. I was looking at this and couldn’t seem to find more meaningful data around who actually changed the setting. I see a user.id attribut…

---

## [DQL query to have specific AWS tag available as value](https://community.dynatrace.com/t/dql-query-to-have-specific-aws-tag-available-as-value/45922)

<div class="topic-metadata">

**Author:** [@aled](https://community.dynatrace.com/u/aled)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 9:04am UTC](https://community.dynatrace.com/t/dql-query-to-have-specific-aws-tag-available-as-value/45922 "2024-06-07T09:04:46Z")

</div>

In the old dashboard, I have a dynamic filter set on a specific AWS tag “Tag key: Custom device \[AWS\]environment” I’m trying to replicate this behaviour in the new dashboards, using variables However, using DQL I’m fai…

---

## [Variable in AWS tag filter not working](https://community.dynatrace.com/t/variable-in-aws-tag-filter-not-working/45923)

<div class="topic-metadata">

**Author:** [@aled](https://community.dynatrace.com/u/aled)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 11:12am UTC](https://community.dynatrace.com/t/variable-in-aws-tag-filter-not-working/45923 "2024-06-06T11:12:25Z")

</div>

I have a DQL query that is working as expected: timeseries approximate\_number\_of\_messages\_visible=avg(cloud.aws.sqs.approximate\_number\_of\_messages\_visible), by: { dt.entity.custom\_device } , filter: { in(dt.entity.custo…

---

## [DQL parsing on JSON](https://community.dynatrace.com/t/dql-parsing-on-json/45934)

<div class="topic-metadata">

**Author:** [@ae](https://community.dynatrace.com/u/ae)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 10:57am UTC](https://community.dynatrace.com/t/dql-parsing-on-json/45934 "2024-06-06T10:57:24Z")

</div>

I have this simple log: Content{“HTTP\_REQUEST\_URL”: “…”,“HTTP\_RESPONSE\_CODE”: 500,“HTTP\_RESPONSE\_BODY”: “errors”,“CURRENT\_URL”: “/example”}I’m trying to get all the http status count that are above 400 example below, bu…

---

## [DQL to get list OS Services and their state?](https://community.dynatrace.com/t/dql-to-get-list-os-services-and-their-state/45933)

<div class="topic-metadata">

**Author:** [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 10:24pm UTC](https://community.dynatrace.com/t/dql-to-get-list-os-services-and-their-state/45933 "2024-06-05T22:24:13Z")

</div>

Is it possible to use DQL to list out the OS services that are setup for specific hosts and their details? Much like how you can use the settings object API with schema ID ‘builtin:os-services-monitoring’ to see the serv…

---

## [Grail DQL in Log Events Extraction](https://community.dynatrace.com/t/grail-dql-in-log-events-extraction/45893)

<div class="topic-metadata">

**Author:** [@Aymeric\_M](https://community.dynatrace.com/u/Aymeric_M)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 3:01pm UTC](https://community.dynatrace.com/t/grail-dql-in-log-events-extraction/45893 "2024-06-05T15:01:08Z")

</div>

I’m in a bit of an dead end : since migrating to Grail the “language” used in the log query of Event Extraction is said to be DQL. One would assume that we could refine the query in Logs & Events advanced mode then copy…

---

## [DQL entities have less infomation than API entities](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822)

<div class="topic-metadata">

**Author:** [@enrybkram](https://community.dynatrace.com/u/enrybkram)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 12:01am UTC](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822 "2024-06-05T00:01:06Z")

</div>

Hi all, I am trying to display the host a process\_group\_instance is running on within a Notebook, using DQL. The dt.entity.process\_group\_instance source does not have the relationship process\_of, which I can see is pre…

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

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