mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * updating/troubleshooting_updates/gathering-data-cluster-update.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="changing-log-data_{context}"]
|
|
= Changing CVO log level (Technology Preview)
|
|
|
|
:FeatureName: Changing the CVO log level
|
|
include::snippets/technology-preview.adoc[]
|
|
|
|
The Cluster Version Operator (CVO) log level verbosity can be changed by the cluster administrator. There are four log levels.
|
|
|
|
* `Normal` - The default log level. Contains working log information. Used when everything is fine. Provides helpful notices for auditing or common operations.
|
|
* `Debug` - Used when something goes wrong. Expect a higher quantity of notices.
|
|
* `Trace` - Used to diagnose errors.
|
|
* `TraceAll` - Used to get the complete body content of the logs.
|
|
|
|
[NOTE]
|
|
====
|
|
If `TraceAll` is turned on in a production cluster it may cause widespread performance issues and large log files.
|
|
====
|
|
|
|
.Prerequisites
|
|
* You have access to the cluster as a user with the `cluster-admin` role.
|
|
* You have installed the {oc-first}.
|
|
* You have the `TechPreviewNoUpgrade` feature set enabled.
|
|
|
|
.Procedure
|
|
|
|
. Enter the following command into the CLI to change the log level.
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc patch clusterversionoperator/cluster --type=merge --patch '{"spec":{"operatorLogLevel":"<log_level>"}}'
|
|
----
|
|
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
clusterversionoperator.operator.openshift.io/cluster patched
|
|
---- |