Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-1567

Need to remove Lokistack RetentionPolicy from ClusterLogging instance configuration under Installing log storage section

XMLWordPrintable

    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      • 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  
      • 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.

              rhn-support-pripatil Prithviraj Patil
              rhn-support-pripatil Prithviraj Patil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days
                  4d