execute_dql
Run DQL queries on Dynatrace Grail to retrieve logs, traces, metrics, events, and entities. Ideal for filtering and analyzing observability data with conditions like log level or time range.
Instructions
Execute a Dynatrace Query Language (DQL) statement against Grail and return the result records. Use for logs, spans/traces, events, metrics, and entities. Example: 'fetch logs | filter loglevel == "ERROR" | limit 50'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The DQL statement to execute. | |
| maxResultRecords | No | Max records to return (default 1000). |