dynatrace_managed_query_logs
Search Dynatrace Managed logs with simple text queries to find errors, exceptions, and timeouts across environments. Returns event types, metadata fields, and error details for troubleshooting.
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:".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"from": "<from>",
"to": "<to>",
"environment_alias": "<environment_alias>"
},
"name": "dynatrace_managed_query_logs"
}
}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. |