From 3b2708bf99c0c34381103daa7e2e5561265df44a Mon Sep 17 00:00:00 2001 From: Prithviraj Patil <116709298+prithvipatil97@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:50:23 +0530 Subject: [PATCH] Update log6x-input-spec-filter-namespace-container.adoc The type field in RHOL 6.0 documentation is missing from the Filtering application logs configuration. https://docs.openshift.com/container-platform/4.17/observability/logging/logging-6.0/log6x-clf.html#log6x-input-spec-filter-namespace-container_logging-6x -type field is missing in the above configuration. -type field filed is required while configuring ClusterLogForwarder with the inputs section. -spec.inputs.type is required -type should be `application` here in above configuration. It needs to look like the following: ~~~ apiVersion: observability.openshift.io/v1 kind: ClusterLogForwarder # ... spec: serviceAccount: name: inputs: - name: mylogs application: includes: - namespace: "my-project" container: "my-container" excludes: - container: "other-container*" namespace: "other-namespace" type: application <<=== Need to add this line ~~~ --- modules/log6x-input-spec-filter-namespace-container.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/log6x-input-spec-filter-namespace-container.adoc b/modules/log6x-input-spec-filter-namespace-container.adoc index 70b3b64a6250..715aeb4970f8 100644 --- a/modules/log6x-input-spec-filter-namespace-container.adoc +++ b/modules/log6x-input-spec-filter-namespace-container.adoc @@ -32,6 +32,7 @@ spec: excludes: - container: "other-container*" # <3> namespace: "other-namespace" # <4> + type: application # ... ---- <1> Specifies that the logs are only collected from these namespaces.