aggregate_logs
Aggregate Datadog logs to compute counts, averages, sums, and percentiles, with optional grouping by any facet for detailed breakdowns.
Instructions
Aggregate Datadog logs to compute metrics like count, avg, sum, min, max, percentiles. Supports group-by for breakdowns.
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>",
"compute": "<compute>"
},
"name": "aggregate_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End time | now |
| from | No | Start time (e.g. "now-1h", "now-24h") | now-1h |
| query | Yes | Log search query (e.g. "service:web-app status:error") | |
| compute | Yes | List of computations to perform | |
| group_by | No | Group results by facets/attributes |