Chapter 10. Uninstalling Cluster Logging
You can remove cluster logging from your OpenShift Container Platform cluster.
10.1. Uninstalling cluster logging from OpenShift Container Platform
You can stop log aggregation by deleting the ClusterLogging
custom resource (CR). However, after deleting the CR there are other cluster logging components that remain, which you can optionally remove.
Prerequisites
- Cluster logging and Elasticsearch must be installed.
Procedure
To remove cluster logging:
Use the OpenShift Container Platform web console to remove the
ClusterLogging
CR:-
Switch to the Administration
Custom Resource Definitions page. - On the Custom Resource Definitions page, click ClusterLogging.
- On the Custom Resource Definition Details page, click Instances.
- Click the Options menu next to the instance and select Delete ClusterLogging.
-
Switch to the Administration
Optional: Delete the custom resource definitions (CRD):
-
Switch to the Administration
Custom Resource Definitions page. - Click the Options menu next to ClusterLogging and select Delete Custom Resource Definition.
- Click the Options menu next to Elasticsearch and select Delete Custom Resource Definition.
- Click the Options menu next to LogForwarding and select Delete Custom Resource Definition.
-
Switch to the Administration
Optional: Remove the Cluster Logging Operator and Elasticsearch Operator:
-
Switch to the Operators
Installed Operators page. -
Select the
openshift-logging
project. - Click the Options menu next to the Cluster Logging Operator and select Uninstall Operator.
-
Select the
openshift-operators-redhat
project. - Click the Options menu next to the Elasticsearch Operator and select Uninstall Operator.
-
Switch to the Operators
Optional: Remove the Cluster Logging and Elasticsearch projects.
-
Switch to the Home
Projects page. - Click the Options menu next to the openshift-logging project and select Delete Project.
-
Confirm the deletion by typing
openshift-logging
in the dialog box and click Delete. Click the Options menu next to the openshift-operators-redhat project and select Delete Project.
ImportantDo not delete the
openshift-operators-redhat
project if other global operators are installed in this namespace.-
Confirm the deletion by typing
openshift-operators-redhat
in the dialog box and click Delete.
-
Switch to the Home