-
Bug
-
Resolution: Done
-
Major
-
OpenShift 4.14 Async, OpenShift 4.15 Async, OpenShift 4.16 Async
-
0
-
False
-
-
False
-
-
-
Important
- Inside Installing log storage section in Installing Logging and the Loki Operator using the web console 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
- I am raising the PR for this change and will work on the PR as well.