Logs
Read Logs
Query for logs.
POST
/
api
/
logs
/
filter
Headers
x-prefect-api-version
string
Body
application/json
offset
integer
default: 0logs
object
Filter logs. Only logs matching all criteria will be returned
sort
enum<string>
Defines log sorting options.
Available options:
TIMESTAMP_ASC
, TIMESTAMP_DESC
limit
integer
Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.
Response
200 - application/json
id
string
created
string | null
updated
string | null
name
string
requiredThe logger name.
level
integer
requiredThe log level.
message
string
requiredThe log message.
timestamp
string
requiredThe log timestamp.
flow_run_id
string | null
The flow run ID associated with the log.
task_run_id
string | null
The task run ID associated with the log.
Was this page helpful?