Skip to content

Commit 66d80dc

Browse files
Remove Lokistack RetentionPolicy from ClusterLogging instance configuration (Web Console Step)
- Inside [Installing log storage|https://docs.openshift.com/container-platform/4.16/observability/logging/log_storage/installing-log-storage.html] section in [Installing Logging and the Loki Operator using the web console|https://docs.openshift.com/container-platform/4.16/observability/logging/log_storage/installing-log-storage.html#logging-loki-gui-install_installing-log-storage] the step no. 11.e : In the YAML field, replace the code with the following:, LokiStack RetentionPolicy mentioned. - Lokistack RetentionPolicy should not be part of ClusterLogging Instance configuration. - Here is the current configuration: ~~~ apiVersion: logging.openshift.io/v1 kind: ClusterLogging metadata:   name: instance    namespace: openshift-logging  spec:   collection:     type: vector   logStore:     lokistack:       name: logging-loki     retentionPolicy:      <<=====|       application:               |         maxAge: 7d               |___This is a wrongly mentioned here       audit:                     |         maxAge: 7d               |       infra:                     |         maxAge: 7d        <<=====|     type: lokistack   visualization:     type: ocp-console     ocpConsole:       logsLimit: 15   managementState: Managed ~~~ - Lokistack RetentionPolicy needs to be mentioned in the LokiStack CR. - Please check Documentation (1) and KCS (2) for reference. (1) https://docs.openshift.com/container-platform/4.16/observability/logging/logging-6.1/log6x-loki-6.1.html#logging-loki-retention_log6x-loki-6.1 (2) https://access.redhat.com/solutions/7053212 - Hence need to remove the retentionPolicy section from the ClusterLogging Instance CR. - Here is the corrected configuration looks: ~~~ apiVersion: logging.openshift.io/v1 kind: ClusterLogging metadata:   name: instance    namespace: openshift-logging  spec:   collection:     type: vector   logStore:     lokistack:       name: logging-loki     type: lokistack   visualization:     type: ocp-console     ocpConsole:       logsLimit: 15   managementState: Managed ~~~
1 parent db0e7e0 commit 66d80dc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

modules/logging-loki-gui-install.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,6 @@ spec:
141141
logStore:
142142
lokistack:
143143
name: logging-loki
144-
retentionPolicy:
145-
application:
146-
maxAge: 7d
147-
audit:
148-
maxAge: 7d
149-
infra:
150-
maxAge: 7d
151144
type: lokistack
152145
visualization:
153146
type: ocp-console

0 commit comments

Comments
 (0)