Default Log labels

Sorry for my bad English, my native tongue is Dutch

  • What Grafana version and what operating system are you using?
    I am having a free account on grafana.com

  • What are you trying to achieve?
    I am trying to match metrics, traces and logs for a service using the Observability\Application\services

  • How are you trying to achieve it?
    I have a .net 8.0 service running in a container
    the setup for otel is like this example
    opentelemetry-dotnet/examples/AspNetCore/Program.cs at main · open-telemetry/opentelemetry-dotnet · GitHub
    and I am setting some environment variables in de docker compose file
    environment:
    OTEL_RESOURCE_ATTRIBUTES: service.namespace=${ApplicationSuite},ApplicationSuite=${ApplicationSuite},facility=Abiware.DGH.Prenotifications,deployment.environment=${ApplicationSuite}

And I am using an Alloy container to send this telemetry to grafana

  • What happened?
    I am receiving the 3 types of telemetry but when I go to observabiltiy/application the logs are not matched with my service

  • What did you expect to happen?
    My logs are match with my service.
    But who is responsible for generating the labels that I seems to miss (assuming that is my problem)

  • Can you copy/paste the configuration(s) that you are having problems with?

In the service I see this as a query (explanation of the query show me that exporter and job are labels)

{exporter="OTLP", job="Development/Abiware.DGH.Prenotifications.Api"} | json | resources_deployment_environment=~"Development" | line_format `e[1m{{if .level }}{{alignRight 5 .level}}{{else if .severity}}{{alignRight 5 .severity}}{{end}}e[0m e[90m[{{alignRight 10 .resources_service_instance_id}}{{if .attributes_thread_name}}/{{alignRight 20 .attributes_thread_name}}{{else if eq "java" .resources_telemetry_sdk_language }}                    {{end}}]e[0m e[36m{{if .instrumentation_scope_name }}{{alignRight 40 .instrumentation_scope_name}}{{end}}e[0m {{.body}} {{if .traceid}} e[37me[3m[traceid={{.traceid}}]{{end}}`

Going into menu Drilldown/logs/labels is showing me that I have the labels detected_level, service_instance_id, service_name, service_namespace, deployment_environment

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?

Default log labels:

Hi jangaraj

I had found that link already

But the problem is that I don’t know who should be creating these labels inside my log data.
And by these labels I mean exporter and job

I have the service

I have traces which match with this service

But I don’t have logs for this service

But I have logs for this service

But not those 2 log labels

Metrics and Trace were match out of the box.
Why not for the logs.
What do I have to do to generate these extra 2 log labels, and where do I have to do it.