<?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 Query Daily License Consumption per Host Using DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288821#M2717</link>
    <description>&lt;P&gt;Hello, could you help me with a DQL query to get the daily license consumption of my hosts? I would like the results to be detailed per host. If there is another way to view this information directly in Dynatrace, I would also like to know. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 12:45:45 GMT</pubDate>
    <dc:creator>NicoleMT</dc:creator>
    <dc:date>2025-12-17T12:45:45Z</dc:date>
    <item>
      <title>Query Daily License Consumption per Host Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288821#M2717</link>
      <description>&lt;P&gt;Hello, could you help me with a DQL query to get the daily license consumption of my hosts? I would like the results to be detailed per host. If there is another way to view this information directly in Dynatrace, I would also like to know. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:45:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288821#M2717</guid>
      <dc:creator>NicoleMT</dc:creator>
      <dc:date>2025-12-17T12:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Query for Daily License Consumption per Host</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288822#M2718</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85361"&gt;@NicoleMT&lt;/a&gt;&amp;nbsp;Take a look at the Cost Allocation dashboard below, it has some views that might help you.&amp;nbsp; "Host usage and cost summary" view is what relates to your query&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/DPS-Cost-Allocation/DPS-Cost-Allocation-Dashboard-V1-2/m-p/260595" target="_blank"&gt;https://community.dynatrace.com/t5/DPS-Cost-Allocation/DPS-Cost-Allocation-Dashboard-V1-2/m-p/260595&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/license/cost-allocation" target="_blank"&gt;https://docs.dynatrace.com/docs/license/cost-allocation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 22:19:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288822#M2718</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-10-29T22:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Query for Daily License Consumption per Host</title>
      <link>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288849#M2720</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;you can try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.system.events, scanLimitGBytes: -1
| filter event.kind == "BILLING_USAGE_EVENT"
| filter event.type == "Full-Stack Monitoring"
| filter isNotNull(dt.entity.host)
| dedup event.id
| summarize fs_gibih = sum(billed_gibibyte_hours),
    by: { day = bin(timestamp, 1d), hostId = dt.entity.host }
| lookup [ fetch dt.entity.host ],
    sourceField: hostId, lookupField: id&lt;/LI-CODE&gt;&lt;P&gt;And this (not tested, i don't have enviroment to test it)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.system.events, scanLimitGBytes: -1
| filter event.kind == "BILLING_USAGE_EVENT"
| filter event.type == "Infrastructure Monitoring"
| filter isNotNull(dt.entity.host)
| dedup event.id
| summarize infra_hosth = sum(billed_host_hours),
    by: { day = bin(timestamp, 1d), hostId = dt.entity.host }
| lookup [ fetch dt.entity.host ],
    sourceField: hostId, lookupField: id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fetch dt.system.events, scanLimitGBytes: -1&lt;/STRONG&gt;&lt;BR /&gt;Fetches system events from storage (with no scan limit in this query).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| filter event.kind == "BILLING_USAGE_EVENT"&lt;/STRONG&gt;&lt;BR /&gt;Keeps only billing-related events.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| filter event.type == "Full-Stack Monitoring"&lt;/STRONG&gt;&lt;BR /&gt;Narrows to the “Full-Stack Monitoring” billing type (where fields like billed_gibibyte_hours are present).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| filter isNotNull(dt.entity.host)&lt;/STRONG&gt;&lt;BR /&gt;Keeps only events that are linked to a specific host (i.e., have dt.entity.host).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| dedup event.id&lt;/STRONG&gt;&lt;BR /&gt;Removes any duplicate events using the unique event.id.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| summarize fs_gibih = sum(billed_gibibyte_hours), by: { day = bin(timestamp, 1d), hostId = dt.entity.host }&lt;/STRONG&gt;&lt;BR /&gt;Aggregates data so you get one row per (day, host):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;day — timestamp bucketed to 1 day (bin(..., 1d)),&lt;/LI&gt;&lt;LI&gt;hostId — the host entity ID (e.g., HOST-...),&lt;/LI&gt;&lt;LI&gt;fs_gibih — the sum of billed_gibibyte_hours for that host on that day.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 10:11:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Query-Daily-License-Consumption-per-Host-Using-DQL/m-p/288849#M2720</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-10-30T10:11:32Z</dc:date>
    </item>
  </channel>
</rss>

