v1

latestOpenAPI 3.1.02026-07-26157321426.3 KB

Gets the logs for a model environment

Gets logs across all deployments that were active on the environment in the given time range, which defaults to the last 30 minutes. Pass start_epoch_millis to widen the window back to an earlier deployment's build/deploy time.

get/v1/models/{model_id}/environments/{env_name}/logs

Query parameters

start_epoch_millisinteger nullable

Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

end_epoch_millisinteger nullable

Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

direction'asc' | 'desc'

Sort order for logs

limitinteger nullable

Limit of logs to fetch in a single request

min_level'DEBUG' | 'INFO' | 'WARNING' | 'ERROR'

A log severity level.

Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

replicastring nullable

Only return logs emitted by this replica (5-char short ID).

request_idstring nullable

Only return logs tagged with this inference request ID.

componentstring nullable

Only return logs from this component.

search_patternstring nullable

RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.

includesstring[]

Case-sensitive substrings that must all appear in the log message.

excludesstring[]

Case-sensitive substrings; lines containing any of these are dropped.

Response