OTel Collector - Loki: Logs missing in Grafana (resource attributes not indexed)

Hi, I’m following the RedHat tutorial to connect OpenTelemetry Collector and LokiStack: https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/red_hat_build_of_opentelemetry/otel-forwarding-telemetry-data#otel-forwarding-logs-to-tempostack_otel-forwarding-telemetry-data

From the collector side, everything appears to be working fine, but when I connected it to Grafana, I only see the cluster logs, not the logs from the applications that are sending telemetry to OTel.

In Grafana, my data source points to:

https://logging-loki-gateway-http.openshift-logging.svc.cluster.local:8080/api/logs/v1/application/

My otlphttp config:

otlphttp/loki:
  auth:
    authenticator: bearertokenauth
  endpoint: 'https://logging-loki-gateway-http.openshift-logging.svc.cluster.local:8080/api/logs/v1/application/otlp'
  tls:
    ca_file: /etc/otel/loki/service-ca.crt

Here’s the log showing what the OTel Collector is receiving:

{“service.instance.id”: “c708b1b7-8506-48eb-8942-e93f992796ae”, “service.name”: “otelcol”, “service.version”: “0.140.1”}, “otelcol.component.id”: “debug”, “otelcol.component.kind”: “exporter”, “otelcol.signal”: “logs”, “resource logs”: 1, “log records”: 2}
2026-01-30T11:15:49.372Z info ResourceLog #0
Resource SchemaURL:
Resource attributes:
→ deployment.environment: Str(dev)
→ host.name: Str(test-ping-67cc5549b-bp6nf)
→ service.name: Str(rest-app)
→ service.namespace: Str(test-ping)
→ service.version: Str(2.0.0)
→ telemetry.sdk.language: Str(java)
→ telemetry.sdk.name: Str(opentelemetry)
→ telemetry.sdk.version: Str(1.44.1)
→ webengine.name: Str(Quarkus)
→ webengine.version: Str(3.24.2)

Grafana labels: (service_name is empty)

What could be the issue? Thx