POST
/
api
/
logs
/
filter
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "level": 123,
    "message": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

Headers

x-prefect-api-version
string

Body

application/json
offset
integer
default:
0
Required range: x > 0
logs
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
Successful Response
id
string
required
created
string | null
required
updated
string | null
required
name
string
required

The logger name.

level
integer
required

The log level.

message
string
required

The log message.

timestamp
string
required

The 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.