cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the details of host name, hostgroup details from particular MZ using DQL

Sivp09
Contributor

I tried below query but not working. can someone help me with query.

fetch dt.entity.host

| managementzones == "Cloud : AWS"

|flieds hosts, hostgroup

it  is giving blank result 

1 REPLY 1

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey @Sivp09 

In the above query you are missing the filter command. By simply typing "managementzones == cloud:aws" Dynatrace doesn't know to use this as a filter. You would have something like the below. Also something else to note, the fields you specified are incorrect too. When using the fields command there should be a suggestion list which is useful for determining the fields available.

Fin_Ubels_0-1733720647288.png

In the future there is also this documentation which details all of the commands available and provides examples of how to use them. Hope this helps!

Featured Posts