shc logs
view application and service logs
Reference for the logs CLI group. Source: modules/logs/commands/.
This is a single-action command (no subcommands).
| Flag | Type | Required | Help |
|---|---|---|---|
-s / --stack | str | no | stack name |
-e / --environment | str | no | environment name |
-f / --follow | bool | no | follow log output |
--since | str | no | show logs since |
-n / --tail | str | no | number of lines to show from end |
-t / --timestamps | bool | no | show timestamps |
--all | bool | no | show logs for all stacks in tenant |
--no-color | bool | no | disable ANSI colors |
Times on an incus node
Section titled “Times on an incus node”An incus console keeps no time for a line, so each incus node stamps its
replicas’ consoles as liblxc writes them, and --since and --timestamps
read those stamps. A line’s time is the moment the node read it: as the
write lands, or within ten seconds on a node that can’t watch the console
files. Lines a console held before the node first read it have no time:
--timestamps prints them without one, and no --since window holds them.
Without --since or --timestamps, shc logs reads the whole console, as
it always did.
shc@docs:~$