Azure Blob
Official and Microsoft Certified Azure Storage Blob connector
The Azure Blob output plugin allows ingesting your records into Azure Blob Storage service. This connector is designed to use the Append Blob and Block Blob API.
Our plugin works with the official Azure Service and also can be configured to be used with a service emulator such as Azurite.
Azure Storage Account
Before getting started, make sure you already have an Azure Storage account. As a reference, the following link explains step-by-step how to set up your account:
Configuration Parameters
We expose different configuration properties. The following table lists all the options available, and the next section has specific configuration details for the official service or the emulator.
Key | Description | default |
---|---|---|
account_name | Azure Storage account name. This configuration property is mandatory | |
auth_type | Specify the type to authenticate against the service. Fluent Bit supports | key |
shared_key | Specify the Azure Storage Shared Key to authenticate against the service. This configuration property is mandatory when | |
sas_token | Specify the Azure Storage shared access signatures to authenticate against the service. This configuration property is mandatory when | |
container_name | Name of the container that will contain the blobs. This configuration property is mandatory | |
blob_type | Specify the desired blob type. Fluent Bit supports | appendblob |
auto_create_container | If | on |
path | Optional path to store your blobs. If your blob name is | |
emulator_mode | If you want to send data to an Azure emulator service like Azurite, enable this option so the plugin will format the requests to the expected format. | off |
endpoint | If you are using an emulator, this option allows you to specify the absolute HTTP address of such service. e.g: http://127.0.0.1:10000. | |
tls | Enable or disable TLS encryption. Note that Azure service requires this to be turned on. | off |
workers | The number of workers to perform flush operations for this output. |
|
Getting Started
As mentioned above, you can either deliver records to the official service or an emulator. Below we have an example for each use case.
Configuration for Azure Storage Service
The following configuration example generates a random message with a custom tag:
After you run the configuration file above, you will be able to query the data using the Azure Storage Explorer. The example above will generate the following content in the explorer:
![](https://docs.fluentbit.io/~gitbook/image?url=https%3A%2F%2F244887246-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FxX4XWQBNSWNjyDWd472Z%252Fuploads%252Fgit-blob-724521fe21f9c5b442ec2953aef95af111fdd914%252Fazure_blob.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a5f26e12&sv=1)
Configuring and using Azure Emulator: Azurite
Install and run Azurite
The quickest way to get started is to install Azurite using npm:
then run the service:
Configuring Fluent Bit for Azurite
Azurite comes with a default account_name
and shared_key
, so make sure to use the specific values provided in the example below (do an exact copy/paste):
after running that Fluent Bit configuration you will see the data flowing into Azurite:
Last updated