Aggregate function logs
Count GenAI function log lines and the conversations they belong to, bucketed by hour or day.
POST
Aggregate function logs
Counts the log lines your GenAI functions wrote, grouped by event, function, conversation, level, environment, project, error type or turn, and optionally bucketed by hour or day. Takes the same filters as search. Use it to see which events fire most, which functions raise, and when.
An empty
Request
Headers
Body
Aggregations to compute, one column each:
count (log lines), conversation_count, first_seen, last_seen (earliest and latest timestamp).Dimensions to group by, one column each:
event, function_name, conversation_id, level, client_env, project_id, error_type, turn_index.Whole-word, case-insensitive terms matched on the event label:
{ "all": [...], "any": [...], "none": [...] }, up to 10 terms each.{ "field": "<a group_by or aggs value>", "order": "asc" | "desc" }. Applied after the ascending bucket sort.Response
Column names in row order:
bucket (when interval is set), then each group_by dimension, then each aggregation.Examples
Which functions log errors, and why
error_type means the function logged the error itself and carried on; a class name means it raised.
Log volume per day
Request
Response
Most frequent events in one conversation
Request
Errors
Last modified on November 10, 2026

