This is a cache of https://docs.openshift.com/rosa/cli_reference/rosa_cli/rosa-checking-logs-cli.html. It is a snapshot of the page at 2024-11-25T03:09:04.442+0000.
Checking logs with the ROSA CLI - ROSA CLI | CLI tools | Red Hat OpenShift Service on AWS
×

Use the following commands to check your install and uninstall logs.

logs install

Show the cluster install logs by using the following command syntax:

Syntax
$ rosa logs install --cluster=<cluster_name> | <cluster_id> [arguments]
Table 1. Arguments
Option Definition

--cluster

Required: The name or ID (string) of the cluster to get logs for.

--tail

The number (integer) of lines to get from the end of the log. Default: 2000

--watch

Watches for changes after getting the logs.

Table 2. Optional arguments inherited from parent commands
Option Definition

--help

Shows help for this command.

--debug

Enables debug mode.

--profile

Specifies an AWS profile (string) from your credentials file.

Examples

Show the last 100 install log lines for a cluster named mycluster:

$ rosa logs install mycluster --tail=100

Show the install logs for a cluster named mycluster:

$ rosa logs install --cluster=mycluster

logs uninstall

Show the cluster uninstall logs by using the following command syntax:

Syntax
$ rosa logs uninstall --cluster=<cluster_name> | <cluster_id> [arguments]
Table 3. Arguments
Option Definition

--cluster

The name or ID (string) of the cluster to get logs for.

--tail

The number (integer) of lines to get from the end of the log. Default: 2000

--watch

Watches for changes after getting the logs.

Table 4. Optional arguments inherited from parent commands
Option Definition

--help

Shows help for this command.

--debug

Enables debug mode.

--profile

Specifies an AWS profile (string) from your credentials file.

Example

Show the last 100 uninstall logs for a cluster named mycluster:

$ rosa logs uninstall --cluster=mycluster --tail=100