Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-7301

JSONParserErr when using OpenTelemetry data model in the Collector

XMLWordPrintable

    • Incidents & Support
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Bug Fix
    • Log Storage - Sprint 272

      • JSONParserErr when using OpenTelemetry data model in the Collector.
      • After configuring the Logging v6.3 for log forwarding to Loki v6.3 using the OpenTelemetry data model as documented  [1], Infrastructure and application logs under Observe => Logs section indicating following error message:

       [1] https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/logging/logging-6-2#quick-start-opentelemetry_logging-6x-6.2 

      __error__JSONParserErr
      __error_details__Value looks like object, but can't find closing '}' symbol 

      - Logging and Loki Operator version:

      $ oc get csv
      
      NAME                                    DISPLAY                          VERSION     REPLACES                                PHASE
      cluster-logging.v6.3.0                  Red Hat OpenShift Logging        6.3.0                                               Succeeded
      cluster-observability-operator.v1.1.1   Cluster Observability Operator   1.1.1       cluster-observability-operator.v1.1.0   Succeeded
      loki-operator.v6.3.0                    Loki Operator                    6.3.0                                               Succeeded

      Steps to Reproduce:
      **

      1. Deploy CLO v6.3 and Loki v6.3, and configure Loki with schema version v13.
      2. Create a clusterLogForwarder custom resource with following configuration:
      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: collector
        namespace: openshift-logging
        annotations:
          observability.openshift.io/tech-preview-otlp-output: "enabled"  
      spec:
        managementState: Managed
        outputs:
          - lokiStack:
              authentication:
                token:
                  from: serviceAccount
              dataModel: Otel
              target:
                name: logging-loki
                namespace: openshift-logging
            name: default-lokistack
            tls:
              ca:
                configMapName: openshift-service-ca.crt
                key: service-ca.crt
            type: lokiStack
        pipelines:
          - inputRefs:
              - application
              - infrastructure
              - audit
            name: default-logstore
            outputRefs:
              - default-lokistack
        serviceAccount:
          name: collector 
      1.  Navigate to OpenShift WebConsole => Administrator => Observe => Logs => Check Application or Infrastructure logs.

      Here is the Screenshot for better understanding:

      Expected results:

      Not "{}error{} JSONParserErr" observed in the infrastructure and application logs.

       

              rojacob@redhat.com Robert Jacob
              rhn-support-pripatil Prithviraj Patil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: