Azureblob Receiver
contrib
Maintainers: @eedorenko, @mx-psi, @dyl10s
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
This receiver reads logs and trace data from Azure Blob Storage. Each blob is expected to contain a single payload. By default the payload is decoded as OTLP/JSON, but the encoding is configurable per signal vialogs.encoding and traces.encoding (see below). In addition to the built-in otlp_json and otlp_proto encodings, you may reference an encoding extension by its component ID to decode other formats.
Modes of Operation
The receiver supports two modes of operation:- Event Hub mode (recommended): Uses Azure Event Hub to receive notifications when new blobs are created. This is more efficient as it processes blobs immediately upon creation.
- Polling mode: Periodically polls the blob containers for new blobs. Use this mode when Event Hub is not available or not desired. Blobs are processed and deleted every 10 seconds.
event_hub.endpoint is configured.
Configuration
The following settings can be optionally configured:event_hub:endpoint:(no default): Azure Event Hub endpoint triggering on theBlob Createevent. If not specified, the receiver uses polling mode.
auth(default = connection_string): Specifies the used authentication method. Supported values areconnection_string,service_principal,default.cloud(default = “AzureCloud”): Defines which Azure Cloud to use when using theservice_principalauthentication method. Value is eitherAzureCloudorAzureUSGovernment.logs:container_name:(default = “logs”): Name of the blob container with the logsencoding:(default = “otlp_json”): Encoding of log blob payloads. Either one of the built-in valuesotlp_jsonorotlp_proto, or the ID of an encoding extension that implementsplog.Unmarshaler.
traces:container_name:(default = “traces”): Name of the blob container with the tracesencoding:(default = “otlp_json”): Encoding of trace blob payloads. Either one of the built-in valuesotlp_jsonorotlp_proto, or the ID of an encoding extension that implementsptrace.Unmarshaler.
connection_string:Azure Blob Storage connection key, which can be found in the Azure Blob Storage resource on the Azure Portal.
service_principal:tenant_idclient_idclient_secret
storage_account_url:Azure Storage Account url
Example configurations
Using Event Hub mode with connection string authentication:Behavior
In Event Hub mode, the receiver subscribes to blob events published by Azure Blob Storage and handled by Azure Event Hub. When it receives aBlob Create event, it reads the logs or traces from the corresponding blob and deletes it after processing.
In polling mode, the receiver periodically lists all blobs in the configured containers, processes each blob, and deletes it after processing.
Configuration
Example Configuration
Last generated: 2026-06-01