Status | |
---|---|
Stability | alpha: logs, traces |
Distributions | contrib |
Issues | |
Code Owners | @eedorenko, @mx-psi |
This receiver reads logs and trace data from Azure Blob Storage.
The following settings are required:
event_hub:
endpoint:
(no default): Azure Event Hub endpoint triggering on theBlob Create
event
The following settings can be optionally configured:
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_principal
authentication method. Value is eitherAzureCloud
orAzureUSGovernment
.logs:
container_name:
(default = "logs"): Name of the blob container with the logstraces:
container_name:
(default = "traces"): Name of the blob container with the traces
Authenticating using a connection string requires configuration of the following additional setting:
connection_string:
Azure Blob Storage connection key, which can be found in the Azure Blob Storage resource on the Azure Portal.
Authenticating using service principal requires configuration of the following additional settings:
service_principal:
tenant_id
client_id
client_secret
storage_account_url:
Azure Storage Account url
The service principal method also requires the Storage Blob Data Contributor role on the logs and traces containers.
Using connection string for authentication:
receivers:
azureblob:
connection_string: DefaultEndpointsProtocol=https;AccountName=accountName;AccountKey=+idLkHYcL0MUWIKYHm2j4Q==;EndpointSuffix=core.windows.net
event_hub:
endpoint: Endpoint=sb://oteldata.servicebus.windows.net/;SharedAccessKeyName=otelhubbpollicy;SharedAccessKey=mPJVubIK5dJ6mLfZo1ucsdkLysLSQ6N7kddvsIcmoEs=;EntityPath=otellhub
Using service principal for authentication:
receivers:
azureblob:
auth: service_principal
service_principal:
tenant_id: "${tenant_id}"
client_id: "${client_id}"
client_secret: "${env:CLIENT_SECRET}"
storage_account_url: https://accountName.blob.core.windows.net
event_hub:
endpoint: Endpoint=sb://oteldata.servicebus.windows.net/;SharedAccessKeyName=otelhubbpollicy;SharedAccessKey=mPJVubIK5dJ6mLfZo1ucsdkLysLSQ6N7kddvsIcmoEs=;EntityPath=otellhub
The receiver subscribes on the events published by Azure Blob Storage and handled by Azure Event Hub. When it receives Blob Create
event, it reads the logs or traces from a corresponding blob and deletes it after processing.