Get server runtime logs
Retrieves runtime logs (stdout/stderr) from a game server, including timestamps, log levels, and region info.
Pagination: Use the next_token from the response as start_time in the next request to fetch subsequent logs. Returns an empty logs array if the server has never launched.
Authorizations
Path Parameters
Server instance ID.
Query Parameters
Fetch logs after this timestamp. Accepts ISO 8601 format (e.g., "2026-03-15T12:00:00Z") or relative time (e.g., "-1h", "-30m"). Omit to fetch from the beginning.
Maximum number of log entries to return (1–1000). Defaults to 200.
1 <= x <= 1000Response
Server runtime logs with pagination cursor.
Server runtime logs with pagination support.
Array of log entries in chronological order.
Server instance ID these logs belong to.
Fly.io machine ID that produced these logs. Null if no machine is assigned (server never launched).
Pagination cursor. Pass this as start_time in the next request to fetch subsequent logs. Null if no more logs.