Skip to main content

CatalogService.StreamSnapshotBuildLogs

Stream log lines for one verified SnapshotBuild workflow pod and container. Select the target with ListSnapshotBuildLogTargets. Each response contains one line.

CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.

POST /prokrust.api.v1alpha1.CatalogService/StreamSnapshotBuildLogs

This RPC uses a response stream. The example shows one message. Use a streaming Connect client for the sequence.

Request fields​

StreamLogsRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
namestringKubernetes metadata.name of the selected resource in this namespace.
uidstringRequired. Pod and container must come from List*LogTargets.
podNamestringName of the workflow pod that owns this log target.
containerstringContainer name within the selected pod. Use a value returned by the log target listing.
tailLinesint640 reads from the beginning; otherwise 1..10000.
followboolTrue keeps the stream open for new log lines after the initial tail.

Example request​

{
"namespace": "analytics",
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"podName": "worker-0",
"container": "main",
"tailLines": "100",
"follow": true
}

Response fields​

StreamLogsResponse

JSON fieldTypeMeaning
podNamestringName of the workflow pod that owns this log target.
containerstringContainer name within the selected pod. Use a value returned by the log target listing.
linestringOne log line from the selected container.

Example response message​

{
"podName": "worker-0",
"container": "main",
"line": "Worker started."
}