Skip to main content

logs

read what a run wrote

⏱️ Read what one run of a scheduled job wrote, oldest line first.

Runs belong to a scheduled job, so pass the job's deployment with --deployment. Find a run's id with csph deployment runs list.

Usage​

csph deployments runs logs <run-id> [flags]

Aliases​

deployments runs logs, deployments runs log, deployments run logs, deployments run log, deployment runs logs, deployment runs log, deployment run logs, deployment run log, deploys runs logs, deploys runs log, deploys run logs, deploys run log

Options​

Command Specific​

--account <string>
account ID
--deployment <string>
deployment ID (required)

-s, --size <int> (default 0)

max items to return (0 = all / server default)

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

level, message, object, spherelet, timestamp

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# read a run's output
> csph deployment runs logs <run-id> --deployment <deployment-id>

# the first 200 lines, as JSON
> csph deployment runs logs <run-id> --deployment <deployment-id> --size 200 --output json

# only the lines themselves
> csph deployment runs logs <run-id> --deployment <deployment-id> -o json --jq '.[].message'

# pick the deployment and run interactively
> csph deployment runs logs

See also​