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 URL: https://api.connic.co
- URL: https://api.connic.co/v1/projects/{project_id}/logs
- Auth: HTTP 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
Changes
No recorded changes to this operation across all 2 revisions of this API.