$ export ROX_eNDPOINT=<host:port> (1)
Central saves information to its container logs.
You have configured the ROX_eNDPOINT
environment variable using the following command:
$ export ROX_eNDPOINT=<host:port> (1)
1 | The host and port information that you want to store in the ROX_eNDPOINT environment variable. |
You can use either the oc
or kubectl
command to view the logs for the Central pod.
To view the logs for the Central pod by using kubectl
, run the following command :
$ kubectl logs -n stackrox <central_pod>
To view the logs for the Central pod by using oc
, run the following command :
$ oc logs -n stackrox <central_pod>
You can change the log level to see more or less information in Central logs.
Run the following command to view the current log level:
$ roxctl central debug log
Run the following command to change the log level:
$ roxctl central debug log --level=<log_level> (1)
1 | The acceptable values for <log_level> are Panic , Fatal , error , Warn , Info , and Debug . |
Run the following command to gather the debugging information for investigating issues:
$ roxctl central debug dump
To generate a diagnostic bundle with the RHACS administrator password or API token and central address, follow the procedure in Generating a diagnostic bundle by using the roxctl CLI.
Debug the Central service.
$ roxctl central debug [flags]
The roxctl central debug
command supports the following options inherited from the parent roxctl
command:
Option | Description |
---|---|
|
Specify a custom CA certificate file path for secure connections. Alternatively, you can specify the file path by using the |
|
Set |
|
Set the endpoint for the service to contact. Alternatively, you can set the endpoint by using the |
|
Force the use of HTTP/1 for all connections. Alternatively, by setting the |
|
enable insecure connection options. Alternatively, by setting the |
|
Skip the TLS certificate validation. Alternatively, by setting the |
|
Disable the color output. Alternatively, by setting the |
|
Specify the password for basic authentication. Alternatively, you can set the password by using the |
|
Use an unencrypted connection. Alternatively, by setting the |
|
Set the TLS server name to use for SNI. Alternatively, you can set the server name by using the |
|
Use the API token provided in the specified file for authentication. Alternatively, you can set the token by using the |
These options are applicable to all the sub-commands of the |
Control the debugging of the database.
$ roxctl central debug db [flags]
Option | Description |
---|---|
|
Specify the timeout for API requests representing the maximum duration of a request. The default value is |
Retrieve the current log level.
$ roxctl central debug log [flags]
Option | Description |
---|---|
|
Specify the log level to which you want to set the modules. Valid values include |
|
Specify the modules to which you want to apply the command. |
|
Specify the timeout after which API requests are retried. A value of zero means that the entire request duration is waited for without retrying. The default value is |
|
Specify the timeout for API requests, which is the maximum duration of a request. The default value is |
Download a bundle containing the debug information for Central.
$ roxctl central debug dump [flags]
Option | Description |
---|---|
|
If set to |
|
Specify the output directory for the bundle content. The default value is an automatically generated directory name within the current directory. |
|
Specify the timeout for API requests, which is the maximum duration of a request. The default value is |
Control the statistics of the Central database.
$ roxctl central debug db stats [flags]
enable or disable authorization tracing in Central for debugging purposes.
$ roxctl central debug authz-trace [flags]
Option | Description |
---|---|
|
Specify the timeout for API requests representing the maximum duration of a request. The default value is |
Reset the statistics of the Central database.
$ roxctl central debug db stats reset [flags]
Download a bundle containing a snapshot of diagnostic information about the platform.
$ roxctl central debug download-diagnostics [flags]
Option | Description |
---|---|
|
Specify a comma-separated list of the Sensor clusters from which you want to collect the logs. |
|
Specify the output directory in which you want to save the diagnostic bundle. |
|
Specify the timestamp from which you want to collect the logs from the Sensor clusters. |
|
Specify the timeout for API requests, which specifies the maximum duration of a request. The default value is |