Skip to content

chalkctl logs

chalkctl logs <node> [flags]

Prints a node's journal of the current boot, of every unit or of --unit alone; with --follow it keeps printing new entries until interrupted. The command needs a reader client file or the secrets file. A node in maintenance mode is reached with --fingerprint or --insecure as well.

Flags

Flag Type Default Description
--address list of [NODE=]ADDR each node's address in the inventory Address of a node's chalkd: host or host:port for the node the command names, or NODE=ADDR for any node; may be repeated.
--config string $CHALKOSCONFIG, else ~/.config/chalkos/config, unless --secrets is given Client file to authenticate with instead of the secrets file.
--fingerprint string — SHA-256 fingerprint the node prints on its console in maintenance mode.
--follow, -f boolean false Keep printing new entries.
--identity list of string ~/.config/chalkos/age.key, ~/.ssh/id_ed25519, ~/.ssh/id_rsa File holding an age identity to decrypt the secrets with; may be repeated.
--insecure boolean false Accept any certificate and print the node's fingerprint.
--inventory string $CHALKOSINVENTORY, else chalkos.yaml in the current directory, when it exists Inventory naming the cluster's nodes, their addresses and their config files.
--secrets string — Cluster secrets path (.age, .enc.*, or plaintext), provider URI, or - for standard input.
--unit string — Unit whose entries alone are printed.

Examples

# Follow chalkd's log on cp1.
chalkctl logs cp1 --unit chalkd.service -f

See also

  • chalkctl: Install and operate chalkos clusters