ID Tokens

Auth0 Logs to Loggly

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

ID Token Structure

Configure the Extension

To install and configure this extension, click on the Auth0 Logs to Loggly box in the list of provided extensions on the Extensions page of the dashboard. The Install Extension window pops open.

Install Auth0 Logs to Loggly Extension

At this point you should set the following configuration variables:

  • Schedule: The frequency with which logs should be exported.
  • Auth0_Domain: The domain of your Auth0 application. You can find this information at the Settings view of your application.
  • Auth0_Global_Client_ID: The Global Client ID of your Auth0 application.
  • Auth0_Global_Client_Secret: The Global Client Secret of your Auth0 application.

You can find the Global Client ID and Global Client Secret information at the Global Application information section of your Tenant Advanced Settings.

  • Loggly_Customer_Token: The identifying token assigned to you by Loggly at set-up.
  • Loggly_Subdomain: The Loggly account name.
  • Log_Level: The minimal log level of events that you would like sent to Loggly.
  • Log_Types: The events for which logs should be exported.

Once you have provided this information, click the Install button to finish installing the extension.

ID Token Security

Batch size

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:

In the ELSE case, the last batch will have < 100 logs.

ID Token Lifetime

Retrieve the required information from Loggly

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

We assume that you already know your Loggly_Subdomain since it's part of your URL. For example, if your account's URL is then the Loggly_Subdomain should be set to mylogs.

  1. Login to your Loggly account.

  2. Using the menu bar at the top, navigate to Source Setup > Customer Tokens. Your Customer Token is displayed on the page. You can create a new one if you want.

Customer Token

  1. Copy this value and head back to the Auth0 dashboard. Set it at the Loggly_Customer_Token field. You 're done!

Next Steps

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 Loggly 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.

View Cron Jobs

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.

View Cron Details

That's it, you are done! You can now navigate to Loggly and view your Auth0 Logs.

View Auth0 Logs at Loggly