dynatrace_managed_query_logs
Search logs in Dynatrace Managed environments with simple text queries to find errors, exceptions, or timeouts. Specify time range and environment for results with event metadata and enhanced error detection.
Instructions
Search logs using simple text queries. Results include event types, expanded metadata fields (up to 8 fields), and enhanced error detection. Managed clusters support basic text search but not structured syntax like "content:" or "loglevel:".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End time (ISO format or relative like "now") | |
| from | Yes | Start time (ISO format or relative like "now-1h") | |
| sort | No | Sort order for logs. Use "-timestamp" for most recent first. | |
| limit | No | Maximum number of logs to return (default: 100). Cannot exceed 1000 | |
| query | Yes | Simple text to search for in log content (e.g., "error", "exception", "timeout"). Do NOT use structured syntax like "content:error" - just use "error". | |
| environment_alias | Yes | Specify which environment to be queried, by supplying the environment alias as returned by get_environments_info. Can use `ALL_ENVIRONMENTS` to retrieve data from all environments in one request to MCP. |