1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/configuring-logging-collector.adoc
Satyajeet Munje cc94fd4ee0 OBSDOCS-693
2024-04-24 18:11:38 +00:00

48 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * observability/logging/cluster-logging-deploying.adoc
// * observability/logging/log_collection_forwarding/cluster-logging-collector.adoc
:_mod-docs-content-type: PROCEDURE
[id="configuring-logging-collector_{context}"]
= Configuring the log collector
You can configure which log collector type your {logging} uses by modifying the `ClusterLogging` custom resource (CR).
include::snippets/logging-fluentd-dep-snip.adoc[]
.Prerequisites
* You have administrator permissions.
* You have installed the {oc-first}.
* You have installed the {clo}.
* You have created a `ClusterLogging` CR.
.Procedure
. Modify the `ClusterLogging` CR `collection` spec:
+
.`ClusterLogging` CR example
[source,yaml]
----
apiVersion: logging.openshift.io/v1
kind: ClusterLogging
metadata:
# ...
spec:
# ...
collection:
type: <log_collector_type> <1>
resources: {}
tolerations: {}
# ...
----
<1> The log collector type you want to use for the {logging}. This can be `vector` or `fluentd`.
. Apply the `ClusterLogging` CR by running the following command:
+
[source,terminal]
----
$ oc apply -f <filename>.yaml
----