1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/cluster-logging-log-forwarding-disable.adoc
2020-08-07 20:40:18 -04:00

48 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * logging/cluster-logging-external.adoc
[id="cluster-logging-log-forwarding-disable_{context}"]
= Disabling the Log Forwarding feature
To disable the Log Forwarding feature, remove the `clusterlogging.openshift.io/logforwardingtechpreview:enabled` parameter from the Cluster Logging Custom Resource (CR) and delete the Log Forwarding CR. The container and node logs will be forwarded to the internal {product-title} Elasticsearch instance.
[IMPORTANT]
====
You cannot disable Log Forwarding by setting the `disableDefaultForwarding` to `false` in the Log Forwarding Custom Resource. This prevents cluster logging from sending logs to the specified endpoints *and* to default internal {product-title} Elasticsearch instance.
====
.Procedure
To disable the Log Forwarding feature:
. Edit the Cluster Logging CR in the `openshift-logging` project:
+
[source,terminal]
----
$ oc edit ClusterLogging instance
----
. Remove the `clusterlogging.openshift.io/logforwardingtechpreview` annotation:
+
[source,yaml]
----
apiVersion: "logging.openshift.io/v1"
kind: "ClusterLogging"
metadata:
annotations:
clusterlogging.openshift.io/logforwardingtechpreview: enabled <1>
name: "instance"
namespace: "openshift-logging"
...
----
<1> Remove this annotation.
. Delete the Log Forwarding Custom Resource:
+
[source,terminal]
----
$ oc delete LogForwarding instance -n openshift-logging
----