Skip to main content
This command is marked as unstable and may change in future releases.

Command: phala logs

Syntax

phala logs [options] [<container-name>]

Description

Fetch logs from a CVM

Arguments

ArgumentDescription
<container-name>?Container name to fetch logs from

Options

OptionDescription
--serialCVM serial console (boot, kernel, docker-compose)
--cvm-stdoutCVM stdout channel
--cvm-stderrCVM stderr channel
--stderrInclude container stderr (container mode only)
-n, --tail <value>Number of lines from end
-f, --followStream in real-time
-t, --timestampsShow timestamps
--since SINCEStart time (RFC3339 or relative, e.g. 42m)
--until UNTILEnd time (RFC3339 or relative)
--cvm-id <value>CVM identifier (UUID, app_id, instance_id, or name)
-i, --interactiveEnable interactive mode

Global Options

OptionDescription
-h, --helpShow help information for the current command
-v, --versionShow CLI version
--api-token TOKEN, --api-key TOKENAPI token used for authentication
-j, --json, --no-jsonOutput in JSON format
--api-version <value>API version to use (e.g. 2025-10-28, 2026-01-21)

Examples

  • Container stdout
phala logs my-service
  • Container stderr
phala logs my-service --stderr
  • Follow container logs
phala logs my-service -f
  • CVM serial console
phala logs --serial
  • CVM stdout channel
phala logs --cvm-stdout
  • CVM stderr channel
phala logs --cvm-stderr
  • Last 100 lines
phala logs my-service -n 100
  • Specify CVM
phala logs my-service --cvm-id app_abc123