Skip to Content
Xeonr Developer Docs
API SpecificationJobs

Tail Logs

POST
/containers.api.v1.JobService/TailLogs

Streams a job's log from byte from_offset of its interleaved log (stdout and stderr in the order written); every chunk's offset is the position of its first byte in that log, so a client resumes from offset + len(data) of the last chunk it kept. For a running job this follows the pod's output live (stdout/stderr split where the job was supervised); for a terminal job it serves the copy stored on the record, both streams in their original order with the stderr flag kept. The stored copy keeps the first 256 KiB of each stream, so an ended job's log can have gaps (the offsets jump) where a stream was cut. Returns Unimplemented for a live job when the api has no cluster access.

Access: any role in the namespace (viewer, operator or admin — via Xeonr team membership or a namespace API key), or a platform admin.

Required scopes: container-platform:namespaces:read

Authorization

BearerAuth
AuthorizationBearer <token>

A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC token for humans. The key's namespace and role are pinned server-side.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/connect+json

jobId?string
Length1 <= length <= 64
fromOffset?string

resume point; zero (or negative, treated as zero) replays from the start

Formatint64
Range0 <= value
[key: string]?never

Response Body

application/connect+json

application/connect+json

curl -X POST "https://containers.xeonr.io/containers.api.v1.JobService/TailLogs" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/connect+json" \  -d ''
{
  "chunk": {
    "offset": "string",
    "data": "string",
    "stderr": true
  }
}