Gets all project's logs in a single log stream
get
/v1/projects/{ref}/analytics/endpoints/logsExecutes an SQL or LQL query on the project's unified logs stream.
Either the iso_timestamp_start and iso_timestamp_end parameters must be provided.
If both are not provided, only the last 1 minute of logs will be queried.
The timestamp range must be no more than 24 hours and is rounded to the nearest minute. If the range is more than 24 hours, a validation error will be thrown.
Filter by the source column to specify specific log sources, such as edge_logs, postgres_logs, etc.
Note: SQL must be written in ClickHouse SQL dialect.
OAuth scopes
- analytics:read
Path parameters
- refRequiredstring
Project ref
Query parameters
- sqlOptionalstring
Custom SQL query to execute on the logs. See querying logs for more details.
- iso_timestamp_startOptionalstring
- iso_timestamp_endOptionalstring
Response codes
- 200
- 401
- 402
- 403
- 429
Response (200)
1{2 "result": [3 null4 ],5 "error": "lorem"6}