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

[release-6.0] The value of field `service_name` is always `unknown_service` when forwarding to grafana OpenTelemetry.

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Bug Fix
    • Log Collection - Sprint 257, Log Storage - Sprint 261
    • Important

      Description of problem:

      Forward logs to grafana OpenTelemetry with below yaml:

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        annotations:
          observability.openshift.io/tech-preview-otlp-output: "enabled"
        name: grafana-otlp
      spec:
        outputs:
        - name: otlp
          type: otlp
          otlp:
            authentication:
              password:
                key: password
                secretName: loki-auth
              username:
                key: username
                secretName: loki-auth
            url: https://otlp-gateway-prod-us-central-0.grafana.net/otlp/v1/logs
        pipelines:
        - inputRefs:
          - application
          - infrastructure
          - audit
          name: audit-logs
          outputRefs:
          - otlp
        serviceAccount:
          name: logging-otlp

      then check logs in grafana console, the value of field `service_name` is always `unknown_service`.

      Version-Release number of selected component (if applicable):

      cluster-logging.v6.0.0 

      How reproducible:

      Always

      Steps to Reproduce:

      Actual results:

      Expected results:

      We should set correct value for the field `service_name`

      Additional info:

            rojacob@redhat.com Robert Jacob
            qitang@redhat.com Qiaoling Tang
            Qiaoling Tang Qiaoling Tang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: