Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-4520

[enterprise-4.11] Issue in file logging/cluster-logging-loki.adoc #50443

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • OpenShift 4.11 Async
    • Logging

      GitHub issue: 

      https://github.com/openshift/openshift-docs/issues/50443

      Which section(s) is the issue in?

      The YAML definition on point 4 of the Deploying the LokiStack section is incorrect:

       

        apiVersion: logging.openshift.io/v1
        kind: ClusterLogging
        metadata:
          name: cr-lokistack
          namespace: openshift-logging
        spec:
           logStore:
             lokistack:
               name: logging-loki 

       

      When trying to apply this, the following error is thrown:

      # oc apply -f clusterlogging.yaml  
      The ClusterLogging "cr-lokistack" is invalid:
        spec.logStore.type: Required value
        metadata.name: Unsupported value: "cr-lokistack": supported values: "instance" 

       

      What needs fixing?

      The correct YAML definition should be:

      apiVersion: logging.openshift.io/v1
      kind: ClusterLogging
      metadata:
        name: instance
        namespace: openshift-logging
      spec:
        logStore:
          type: lokistack
          lokistack:
            name: lokistack-dev

       

              Unassigned Unassigned
              cbremble@redhat.com Claire Bremble
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: