Get environment logs
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.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Query Parameters
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.
Epoch milliseconds at which to stop fetching logs. Defaults to the current time.
Sort order for logs
asc, desc Limit of logs to fetch in a single request
1 <= x <= 1000Minimum 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. A log severity level.
DEBUG, INFO, WARNING, ERROR Only return logs emitted by this replica (5-char short ID).
256Only return logs tagged with this inference request ID.
256Only return logs from this component.
256RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.
256Case-sensitive substrings that must all appear in the log message.
8Case-sensitive substrings; lines containing any of these are dropped.
8Response
A response to querying logs.
Logs for a specific entity.