Setting a log level for the External Secrets Operator for Red Hat OpenShift operand
You can troubleshoot common issues, such as secret synchronization failures, provider authentication errors, or data formatting problems, by configuring the log verbosity for the core controller.
Prerequisites
-
You have access to the cluster with
cluster-adminprivileges. -
You have created the
ExternalSecretsConfigcustom resource.
Procedure
-
Edit the
ExternalSecretsConfigCR by running the following command:$ oc edit externalsecretsconfigs.operator.openshift.io cluster -
Set the log level value by editing the
spec.appConfig.logLevelsection:apiVersion: operator.openshift.io/v1alpha1 kind: ExternalSecretsConfig ... spec: appConfig: logLevel: <log_level>where:
- log_level
-
Supports the value range of 1-5. The log level gets mapped to the following operand support levels:
-
1 - warnings
-
2 - error logs
-
3 - info logs
-
4 and 5 - debug logs
-
-
Save your changes and exit the editor.