brc extract logs
brc extract logs
Extract logs from a specific
Synopsis
This command extracts the logs for a running <element>
in the Kubernetes cluster or equivalently the
system journals for a particular Snap application on the bare-metal machine. The logs are extracted in real-time and
are streamed to the standard output. If an <element>
has multiple Pods and each of them potentially
multiple containers, the logs from all the containers are aggregated and streamed.
The option --namespace
by default points to a Kubernetes namespace of the default Kubernetes context. You
may explicitly provide the context in the format of <context-name>.<namespace>
to access the cluster using
particular kubectl
context. The format bare.<machine-name>
is reserved for bare-metal machine
access where SSH is used to access the machine named <machine-name>
. In this case
the <element>
is the name of the Snap package on the target machine and the logs for all the services
running in that Snap package are aggregated and streamed.
brc extract logs [flags]
Examples
brc extract logs --namespace [<?context>.]<namespace> <element>
Options
-h, --help help for logs
Options inherited from parent commands
-n, --namespace string namespace to perform the operations (default "trirematics")
-v, --verbose debug output
SEE ALSO
- brc extract - Extract logs, configuration, PCAPs, or infrastructure details