<?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: Entity Tags DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Entity-Tags-DQL/m-p/279270#M2196</link>
    <description>&lt;P&gt;The `entity_tags` field is an array, so you should be able to expand it and then filter on specific tag(s).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter isNull(dt.davis.is_duplicate) OR NOT dt.davis.is_duplicate
| fields display_id, event.name, event.status, event.description,entity_tags, event.start, event.end, event.id, dt.davis.problems, affected_entity_ids, affected_entity_types,root_cause_entity_name
| expand entity_tags
| filter in(entity_tags, {"AESM_App_Purpose:NED", "AESM_App_Purpose:AreaClienteAXA"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 16:24:51 GMT</pubDate>
    <dc:creator>TracingMySanity</dc:creator>
    <dc:date>2025-06-12T16:24:51Z</dc:date>
    <item>
      <title>Entity Tags DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Entity-Tags-DQL/m-p/279232#M2195</link>
      <description>&lt;DIV class=""&gt;I have a DQL that shows a series of fields that I am interested in, one of them is entity_tags.&lt;/DIV&gt;&lt;DIV class=""&gt;But I only want one of the tags to appear in that field, not all of them (if it has that tag) otherwise I want an empty or null to appear.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This is the DQL:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;fetch dt.davis.problems&lt;BR /&gt;| filter isNull(dt.davis.is_duplicate) OR NOT dt.davis.is_duplicate&lt;BR /&gt;| filter in(labels.alerting_profile, "[AESM] Alertas_24x7")&lt;BR /&gt;| fields display_id, event.name, event.status, event.description,entity_tags, event.start, event.end, event.id, dt.davis.problems, affected_entity_ids, affected_entity_types,root_cause_entity_name&lt;BR /&gt;| expand affected_entity_ids&lt;BR /&gt;| lookup&lt;BR /&gt;[&lt;BR /&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd osType&lt;BR /&gt;], sourceField:affected_entity_ids, lookupField:id, fields:{osType}&lt;BR /&gt;| expand affected_entity_ids&lt;BR /&gt;| lookup&lt;BR /&gt;[&lt;BR /&gt;fetch dt.entity.synthetic_test&lt;BR /&gt;| fieldsAdd entity.name&lt;BR /&gt;], sourceField:affected_entity_ids, lookupField:id, fields:{entity.name}&lt;BR /&gt;| fieldsRemove event.status&lt;BR /&gt;| fieldsAdd ids_sorted = arraySort(affected_entity_ids, direction:"ascending")&lt;BR /&gt;| fields `Activo`=problems,Inicio=event.start, Fin=event.end,entity_tags,display_id, Tipo=event.name,Monitor=entity.name, osType,Causa_Raiz=root_cause_entity_name,Descripcion=event.description, event.id&lt;BR /&gt;| sort Inicio desc&lt;BR /&gt;| dedup event.id, sort:{Monitor}&lt;BR /&gt;| fieldsAdd Monitor = if(isNull(Monitor), "KeepAlive", else:Monitor)&lt;BR /&gt;| fieldsAdd osType = if(isNull(osType), "N/A", else:osType)&lt;BR /&gt;| fieldsAdd Causa_Raiz = if(isNull(Causa_Raiz), "No determinada", else:Causa_Raiz)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;This is the actual table:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo2_0-1749719985882.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28452i7C33FC5D72CD3427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo2_0-1749719985882.png" alt="Pablo2_0-1749719985882.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jun 2025 09:20:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Entity-Tags-DQL/m-p/279232#M2195</guid>
      <dc:creator>Pablo2</dc:creator>
      <dc:date>2025-06-12T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Tags DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Entity-Tags-DQL/m-p/279270#M2196</link>
      <description>&lt;P&gt;The `entity_tags` field is an array, so you should be able to expand it and then filter on specific tag(s).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter isNull(dt.davis.is_duplicate) OR NOT dt.davis.is_duplicate
| fields display_id, event.name, event.status, event.description,entity_tags, event.start, event.end, event.id, dt.davis.problems, affected_entity_ids, affected_entity_types,root_cause_entity_name
| expand entity_tags
| filter in(entity_tags, {"AESM_App_Purpose:NED", "AESM_App_Purpose:AreaClienteAXA"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:24:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Entity-Tags-DQL/m-p/279270#M2196</guid>
      <dc:creator>TracingMySanity</dc:creator>
      <dc:date>2025-06-12T16:24:51Z</dc:date>
    </item>
  </channel>
</rss>

