aggregate_logs
Count log records over time and group them by attributes to analyze trends and identify patterns in Dynatrace logs. Filter by query and time range for targeted log analysis.
Instructions
Count log records over time and by attribute (GET /api/v2/logs/aggregate). Needs logs.read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aggregate_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Log query to filter on | |
| to_time | No | End: now, ISO-8601 or epoch ms | now |
| group_by | No | Attributes to group by, e.g. ['status','log.source'] | |
| from_time | No | Start: now-2h, ISO-8601 (2026-10-31T10:00:00Z) or epoch ms | now-2h |
| time_buckets | No | Number of time buckets | |
| max_group_values | No |