Skip to content
Proud to collaborate with Microsoft for Startups

kubernetes.pod.logs ​

Read recent logs from a Pod (one-shot tail; not streaming)

Read recent logs from a Pod (one-shot tail; not streaming).

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • namespace: Target namespace (required)
  • name: Pod name (required)
  • container: Container name — omit for single-container Pods (optional)
  • tail_lines: Number of log lines to return; default 200, max 2 000 (optional)
  • since_seconds: Return logs newer than this many seconds ago (optional)
  • previous: If True, return logs from the prior crashed container instance (optional)

Outputs:

  • logs: The raw log text as a single string
  • bytes: Length of the returned log text in bytes
  • truncated: True when tail_lines was hit or the cap was applied

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namespacestringYes——
namestringYes——
containerstringNo——
tail_linesintegerNo——
since_secondsintegerNo——
previousbooleanNo——
organization_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
organization_uuiduuidNo——
namespacestringNo——
namestringNo——
containerstringNo——
tail_linesintegerNo——
since_secondsintegerNo——
previousbooleanNo——
logsstringNo——
bytesintegerNo——
truncatedbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "kubernetes.pod.logs",
  "initial_data": {
    "connection_uuid": "value",
    "namespace": "value",
    "name": "value"
  }
}