Auth0 Logs to Azure Blob Storage
The Auth0 Logs to Azure Blob Storage is a scheduled job that takes all of your Auth0 logs and exports them to Azure Blob Storage.
Azure Blob storage is a service that stores unstructured object data, such as text or binary data, in the cloud as objects/blobs.
Configure the Extension
To install and configure this extension, navigate to the Extensions page and click on the Auth0 Logs to Azure Blob Storage box in the list of provided extensions.
The Install Extension window pops open.
At this point you should set the following configuration variables:
- Schedule: The frequency with which logs should be exported.
- Batch_Size: The amount of logs to be read on each execution. Maximum is 100.
- Storage_Account_Name: The name of the Azure storage account you want to export to.
- Storage_Account_Key: The access key associated with your storage account.
- Storage_Container_Name: The name of the specific container within the storage account you would like to use.
Once you have provided this information, click the Install button to finish installing the extension.
When setting your BATCH_SIZE, please keep the following information in mind.
During each time frame/window (defined by your chosen Schedule), outstanding logs will be batched into groups and sent. The size of each group is determined by the BATCH_SIZE value.
In other words, during each window,
NUM_BATCHES batches of logs will be sent based on the following logic:
IF (NUM_LOGS modulo 100 == 0): NUM_BATCHES = (NUM_LOGS / BATCH_SIZE) ELSE: NUM_BATCHES = (NUM_LOGS / BATCH_SIZE) + 1
ELSE case, the last batch will have < 100 logs.
Retrieve the required information from Azure Portal
We need the following information: Account Name, Account Key, and Container Name. Let's see how we can retrieve these values from Azure Portal.
We assume that you have an Azure account. If you don’t have one, you can go to Azure and sign up.
Log into your Azure account and click on Storage accounts on the left-hand side. Either select your storage account, or create a new one.
The Account Name is the name of your storage account, the one we created is named
This value should be set as Storage_Account_Name.
The value Kind should be set as Storage.
To retrieve the rest of the information, click on the Storage account name. The Overview tab is displayed. Click on the Containers tab.
You can create a new container or use an existing one. The one we created is named
This value should be set as Storage_Container_Name.
Click on the Access keys tab. Here you can find the value for Storage_Account_Key. Use either one of the keys.
Now that you have retrieved all three values head back to the Auth0 dashboard and set them at the corresponding fields. You 're done!
Use installed Extension
To view all scheduled jobs, navigate to the Extensions page, click on the Installed Extensions link, and select the Auth0 Logs to Azure Blob Storage line. There you can see the job you just created, modify its state by toggling the State switch, see when the next run is due and what was the result of the last execution.
You can view more details by clicking on the job you created. In this page you can view details for each execution, reschedule, access realtime logs, and more.