List agent logs
Cursor-paginated feed of the log lines agents wrote during runs in one environment (trace entries of type log). Pass next_cursor back as cursor to load the next page in the same direction. To fetch logs written after the first page, pass its first_cursor with direction=newer. Time filters apply to the log timestamp and take the same values as GET /runs.
Required permission: logs.view.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment to list logs from
Preset window ending now, or a calendar period in UTC. Ignored when both start_date and end_date are set.
Custom window start; applies only together with end_date and overrides time_range.
Custom window end; applies only together with start_date.
Filter by deployment
Exclude logs from runs with a test name
Filter by one or more agent names
Filter by one or more log levels
Filter by one or more log sources
Match log message, source, or agent name
Opaque cursor returned by the previous logs response
older returns logs before cursor, newest first; newer returns logs after cursor, oldest first.
Page size, 1 to 250.
Response
Successful Response
Log entries, newest first for direction=older and oldest first for direction=newer.
Whether more entries exist beyond this page in the same direction.
Pass as cursor with the same direction to load the next page. Null when has_more is false.
Cursor of the first entry on this page. Pass it with direction=newer to load entries written after this page.
Cursor of the last entry on this page. Null when the page is empty.
Paging direction used: older pages back in time, newer pages forward.
Changes
No recorded changes to this operation across all 17 revisions of this API.