<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DQL filter by tag? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Filter-Data-by-Tags-in-Dynatrace-Query-Language-DQL/m-p/211978#M109</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd entity.type, lifetime, tags&lt;BR /&gt;| filter matchesValue(tags,"abc")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 07:25:58 GMT</pubDate>
    <dc:creator>dannemca</dc:creator>
    <dc:date>2023-05-15T07:25:58Z</dc:date>
    <item>
      <title>Filter Data by Tags in Dynatrace Query Language (DQL)</title>
      <link>https://community.dynatrace.com/t5/DQL/Filter-Data-by-Tags-in-Dynatrace-Query-Language-DQL/m-p/211968#M108</link>
      <description>&lt;P&gt;&lt;EM&gt;Summary:&amp;nbsp;This thread explains how to filter data using tags in DQL queries. It includes syntax examples and practical tips for refining dashboards and reports in Dynatrace.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How to filter by tags in DQL?&lt;/P&gt;
&lt;P&gt;This gives many hosts but I'd like to filter by the different tags I see.&lt;/P&gt;
&lt;PRE&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd entity.type, lifetime, tags, softwareTechnologies, osType, hypervisorType, state, kubernetesLabels,&lt;BR /&gt; cpuCores, memoryTotal, boshName, gcpZone, awsNameTag, oneAgentCustomHostName, azureResourceGroupName, dnsNames,&lt;BR /&gt; ipAddress, osVersion, installerVersion, osArchitecture, bitness, gceInstanceId, boshAvailabilityZone, gceProjectId,&lt;BR /&gt; boshInstanceId, boshInstanceName, gceInstanceName, gceHostName, boshStemcellVersion, zosSystemName, zosLparName,&lt;BR /&gt; osServices, paasVendorType, cloudType, networkZone, gceNumericProjectId, azureEnvironment, azureComputeModeName,&lt;BR /&gt; zosVirtualization, azureSiteNames, zosCPUSerialNumber, cloudPlatformVendorVersion, azureHostNames, gceMachineType,&lt;BR /&gt; azureVmSizeLabel, monitoringMode, standalone, autoInjection, azureVmScaleSetName, installerSupportAlert,&lt;BR /&gt; zosCPUModelNumber, azureZone, boshDeploymentId, installerPotentialProblem, logicalCpus, physicalMemory,&lt;BR /&gt; customHostMetadata, standaloneSpecialAgentsOnly, additionalSystemInfo, logicalCpuCores, zosTotalPhysicalMemory,&lt;BR /&gt; zosTotalGeneralPurposeProcessors, virtualCpus, gcePublicIpAddresses, isMonitoringCandidate, zosTotalZiipProcessors,&lt;BR /&gt; installerTrackedDownload, macAddresses, simultaneousMultithreading, paasMemoryLimit, azureSku&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"records": [{&lt;BR /&gt;  "id": "HOST-123456789",&lt;BR /&gt;  "entity.name": "xxxxxx",&lt;BR /&gt;  "entity.type": "HOST",&lt;BR /&gt;  "lifetime": {&lt;BR /&gt;    "start": "2022-07-21T12:45:55.198Z",&lt;BR /&gt;    "end": "2023-05-11T18:21:20.728Z"&lt;BR /&gt;  },&lt;BR /&gt;  "tags": [&lt;BR /&gt;  "TG.ProcessGroup.DetectedName:Oracle Listeners",&lt;BR /&gt;  "TG.App.Env:testing"&lt;BR /&gt;  ]&lt;BR /&gt;}, ...&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd entity.type, lifetime, tags&lt;BR /&gt;| filter contains(tags,"abc") - this fails&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 12:29:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Filter-Data-by-Tags-in-Dynatrace-Query-Language-DQL/m-p/211968#M108</guid>
      <dc:creator>Stephen1_Lee</dc:creator>
      <dc:date>2026-01-21T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: DQL filter by tag?</title>
      <link>https://community.dynatrace.com/t5/DQL/Filter-Data-by-Tags-in-Dynatrace-Query-Language-DQL/m-p/211978#M109</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd entity.type, lifetime, tags&lt;BR /&gt;| filter matchesValue(tags,"abc")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 07:25:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Filter-Data-by-Tags-in-Dynatrace-Query-Language-DQL/m-p/211978#M109</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2023-05-15T07:25:58Z</dc:date>
    </item>
  </channel>
</rss>

