My error is similar to this post that I don’t see a resolution for: https://community.dynatrace.com/t5/DQL/DQL-Relationship-Query-returning-too-many-entity-IDs/m-p/229409
I am running the DQL below which results in error: “The number of entity IDs in the relationship fields has been limited. Please try filtering or narrowing your timeframe.”
<font face="courier new,courier">fetch dt.entity.host<br>| fieldsAdd tags<br>| expand tags<br>| filter contains(tags, "Portfolio:")<br>| parse tags, """((LD:tag (!<<'\\' ':') LD:value)|LD:tag)"""<br>| filter value == $Portfolio<br>| fieldsRemove tags, tag, value<br>| fieldsAdd disks = contains[dt.entity.disk]<br>// the error happens for this operation above ^^^^<br>| expand disks<br>| fields disks</font>
I tried increasing my Query Limits but no change in the error.
DQL objective:
- Get the Hosts and filter for any Hosts where Tag ‘Portfolio:’ equals the $Portfolio variable
- Get the Disks associated with the Host - adding the list of Disks is where the error occurs
- Expand each Disk into a row
As soon as I expand disks the error occurs. In my environment for this scenario there are 417 Hosts matching the $Portfolio tag which then expands into at least 9,984 Disks (could be more due to error limits).
Any ideas how to get around this error limit?