aggregate-logs
Compute statistics on Datadog logs via aggregate functions like count, avg, sum, percentiles, with optional grouping by fields such as service or status.
Instructions
Aggregate Datadog logs with statistical computations (count, avg, sum, percentiles) and grouping
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Log filter query. Example: service:api-server status:error | |
| from | Yes | Start time (ISO 8601). Example: 2026-02-26T00:00:00Z | |
| to | Yes | End time (ISO 8601). Example: 2026-02-26T23:59:59Z | |
| aggregation | Yes | Aggregation function. Example: count | |
| metric | No | Metric field for non-count aggregations. Example: @duration or @http.response_time | |
| groupBy | No | Field to group by. Example: service or status or @http.status_code |