Skip to content

Commit 7708fef

Browse files
Remove Lokistack RetentionPolicy from ClusterLogging instance (CLI Steps)
- In the Installing log storage [1] section in Installing Logging and the Loki Operator using the CLI [2], step No. 13: Create a LokiStack CR: LokiStack RetentionPolicy is mentioned. [1] https://docs.openshift.com/container-platform/4.16/observability/logging/log_storage/installing-log-storage.html [2] https://docs.openshift.com/container-platform/4.16/observability/logging/log_storage/installing-log-storage.html#logging-loki-cli-install_installing-log-storage - 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 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 [3] and KCS ([4] for reference. [3] 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 [4] https://access.redhat.com/solutions/7053212 - Hence, we 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 4135774 commit 7708fef

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

modules/logging-loki-cli-install.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,6 @@ spec:
202202
logStore:
203203
lokistack:
204204
name: logging-loki
205-
retentionPolicy:
206-
application:
207-
maxAge: 7d
208-
audit:
209-
maxAge: 7d
210-
infra:
211-
maxAge: 7d
212205
type: lokistack
213206
visualization:
214207
type: ocp-console

0 commit comments

Comments
 (0)