<?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 how get hostname from dt.source_entity and dt.entity.process_group_instance in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293396#M3064</link>
    <description>&lt;P&gt;HI,&amp;nbsp;I need to pull out the hostname associated with each process:&lt;/P&gt;&lt;P&gt;this is my query...&lt;/P&gt;&lt;P&gt;timeseries count = sum(dt.log.status_per_entity_count, default: 0), by:{dt.source_entity,dt.entity.process_group,dt.entity.host}&lt;BR /&gt;| filter isNotNull(dt.source_entity)&lt;BR /&gt;| filter matchesValue(dt.entity.process_group,"*PROCESS*")&lt;BR /&gt;| expand dt.source_entity&lt;BR /&gt;| fieldsAdd dt.entity.process_group&lt;BR /&gt;| fieldsAdd dt.entity.host&lt;BR /&gt;| fieldsAdd dt.source_entity&lt;BR /&gt;| fields dt.source_entity, records = arraySum(count), joinMe = "*"&lt;BR /&gt;| sort records desc&lt;BR /&gt;| limit 50&lt;BR /&gt;//| join [ fetch dt.entity.host ], on: { left[dt.source_entity] == right[id] }, kind:leftOuter, prefix: "host."&lt;BR /&gt;| join [ fetch dt.entity.process_group_instance ], on: { left[dt.source_entity] == right[id] }, kind:leftOuter, prefix: "pgi."&lt;/P&gt;&lt;P&gt;| join [&lt;BR /&gt;timeseries total = sum(dt.log.status_per_entity_count, default: 0)&lt;BR /&gt;| fields total = arraySum(total), joinMe="*"&lt;BR /&gt;], on: joinMe&lt;/P&gt;&lt;P&gt;| fields&lt;BR /&gt;dt.source_entity=toString(dt.source_entity), percentage = (records / right.total) * 100,&lt;BR /&gt;name=coalesce(&lt;BR /&gt;pgi.entity.name&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need one more colunm whit hostane&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-21 153315.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31699i95EB0955D9AE5B66/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-21 153315.png" alt="Screenshot 2026-01-21 153315.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2026 14:35:56 GMT</pubDate>
    <dc:creator>gasperetta</dc:creator>
    <dc:date>2026-01-21T14:35:56Z</dc:date>
    <item>
      <title>how get hostname from dt.source_entity and dt.entity.process_group_instance</title>
      <link>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293396#M3064</link>
      <description>&lt;P&gt;HI,&amp;nbsp;I need to pull out the hostname associated with each process:&lt;/P&gt;&lt;P&gt;this is my query...&lt;/P&gt;&lt;P&gt;timeseries count = sum(dt.log.status_per_entity_count, default: 0), by:{dt.source_entity,dt.entity.process_group,dt.entity.host}&lt;BR /&gt;| filter isNotNull(dt.source_entity)&lt;BR /&gt;| filter matchesValue(dt.entity.process_group,"*PROCESS*")&lt;BR /&gt;| expand dt.source_entity&lt;BR /&gt;| fieldsAdd dt.entity.process_group&lt;BR /&gt;| fieldsAdd dt.entity.host&lt;BR /&gt;| fieldsAdd dt.source_entity&lt;BR /&gt;| fields dt.source_entity, records = arraySum(count), joinMe = "*"&lt;BR /&gt;| sort records desc&lt;BR /&gt;| limit 50&lt;BR /&gt;//| join [ fetch dt.entity.host ], on: { left[dt.source_entity] == right[id] }, kind:leftOuter, prefix: "host."&lt;BR /&gt;| join [ fetch dt.entity.process_group_instance ], on: { left[dt.source_entity] == right[id] }, kind:leftOuter, prefix: "pgi."&lt;/P&gt;&lt;P&gt;| join [&lt;BR /&gt;timeseries total = sum(dt.log.status_per_entity_count, default: 0)&lt;BR /&gt;| fields total = arraySum(total), joinMe="*"&lt;BR /&gt;], on: joinMe&lt;/P&gt;&lt;P&gt;| fields&lt;BR /&gt;dt.source_entity=toString(dt.source_entity), percentage = (records / right.total) * 100,&lt;BR /&gt;name=coalesce(&lt;BR /&gt;pgi.entity.name&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need one more colunm whit hostane&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-21 153315.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31699i95EB0955D9AE5B66/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-21 153315.png" alt="Screenshot 2026-01-21 153315.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 14:35:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293396#M3064</guid>
      <dc:creator>gasperetta</dc:creator>
      <dc:date>2026-01-21T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: how get hostname from dt.source_entity and dt.entity.process_group_instance</title>
      <link>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293430#M3071</link>
      <description>&lt;P&gt;Hi Gasperetta &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Try this out!&lt;BR /&gt;timeseries count = sum(dt.log.status_per_entity_count, default: 0), by:{dt.source_entity,dt.entity.process_group,dt.entity.host}&lt;BR /&gt;| filter isNotNull(dt.source_entity)&lt;BR /&gt;| filter matchesValue(dt.entity.process_group,"*PROCESS*")&lt;BR /&gt;| expand dt.source_entity&lt;BR /&gt;| fieldsAdd dt.entity.process_group&lt;BR /&gt;| fieldsAdd dt.entity.host&lt;BR /&gt;| fieldsAdd dt.source_entity&lt;BR /&gt;| fieldsAdd hostname = entityName(dt.entity.host)&lt;BR /&gt;| fields dt.source_entity, dt.entity.host, hostname, records = arraySum(count), joinMe = "*"&lt;BR /&gt;| sort records desc&lt;BR /&gt;| limit 50&lt;BR /&gt;| join [ fetch dt.entity.process_group_instance ], on: { left[dt.source_entity] == right[id] }, kind:leftOuter, prefix: "pgi."&lt;/P&gt;&lt;P&gt;| join [&lt;BR /&gt;timeseries total = sum(dt.log.status_per_entity_count, default: 0)&lt;BR /&gt;| fields total = arraySum(total), joinMe="*"&lt;BR /&gt;], on: joinMe&lt;/P&gt;&lt;P&gt;| fields&lt;BR /&gt;dt.source_entity=toString(dt.source_entity), percentage = (records / right.total) * 100,&lt;BR /&gt;name=coalesce(pgi.entity.name), hostname, hostID = pgi.belongs_to&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 22:54:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293430#M3071</guid>
      <dc:creator>raksh_hitha</dc:creator>
      <dc:date>2026-01-21T22:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: how get hostname from dt.source_entity and dt.entity.process_group_instance</title>
      <link>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293449#M3073</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 08:27:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/how-get-hostname-from-dt-source-entity-and-dt-entity-process/m-p/293449#M3073</guid>
      <dc:creator>gasperetta</dc:creator>
      <dc:date>2026-01-22T08:27:49Z</dc:date>
    </item>
  </channel>
</rss>

