Auth0 Logs to Application Insights

The Auth0 Logs to Application Insights is a scheduled job takes all of your Auth0 logs and exports them to Application Insights.

Configure the Extension

To install and configure this extension, click on the Auth0 Logs to Application Insights box in the list of provided extensions on the Extensions page of the dashboard. 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: TThe amount of logs to be read on each execution. Maximun is 100.

Once you have provided the appropriate values for the above fields, click Install to proceed.

Retrieve the required information from Application Insights

Let's see how we can retrieve the AppInsights_Instrumentation_Key information.

Login to your Azure Portal and add a new Application Insights instance in your subscription. To do so click New and search for Application Insights.

Click Create and fill in the required information, such as the name of your instance, the application type and the resource group. Click Create to trigger the provisioning process.

Once the provisioning is complete (after a few seconds usually) you can get the Instrumentation Key from the Properties page.

Copy this value and head back to your Auth0 dashboard. Set it at the AppInsights_Instrumentation_Key field. Save your changes.

Use Your Installed Extension

To view all scheduled jobs, navigate to the Extensions page of the dashboard, click on the Installed Extensions link, and select the Auth0 Logs to Application Insights 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.