description | topics | contentType | useCase | |||
---|---|---|---|---|---|---|
How to install and configure the Auth0 Logs to CloudWatch extension. |
|
|
extensibility-extensions |
The Auth0 Logs to CloudWatch extension is a scheduled job that exports your Auth0 logs to CloudWatch. Amazon CloudWatch is a monitoring and management service built for developers, system operators, site reliability engineers (SRE), and IT managers.
To install and configure this extension, click on the Auth0 Logs to CloudWatch box in the list of provided extensions on the Extensions page of the Management Portal. The Install Extension window pops open.
At this point you should set the following configuration variables:
Parameter | Description |
---|---|
Schedule | The frequency with which logs should be exported. The schedule can be customized even further after creation. |
BATCH_SIZE | The amount of logs to be read on each execution. Maximun, and default, is 100 . |
START_FROM | The checkpoint ID of the log from where you want to start. |
SLACK_INCOMING_WEBHOOK | The Slack incoming webhook URL used to send relevant updates. |
SLACK_SEND_SUCCESS | Toggle for sending verbose notifications to Slack. |
LOG_LEVEL | The minimal log level of events that you would like sent to CloudWatch. |
LOG_TYPES | The events for which logs should be exported. |
CLOUDWATCH_LOG_GROUP_NAME Required |
CloudWatch log group name, created in CloudWatch. |
CLOUDWATCH_LOG_STREAM_NAME Required |
CloudWatch log stream name. |
AWS_ACCESS_KEY_ID Required |
AWS access key ID |
AWS_SECRET_KEY Required |
AWS secret key |
AWS_REGION Required |
Your AWS region |
Extension requires these AWS permissions in order to send logs to CloudWatch:
logs:PutLogEvents
logs:DescribeLogStreams
Once you have provided this information, click the Install button to finish installing the extension.
<%= include('./_includes/_batch-size') %>
You can monitor activity by logging into the extension. There you can find reports on most recent runs. Reports contains amount of logs processed and errors, if any.
In the event of a CloudWatch failure or service interruption you can replay the logs starting from the failed log.
To replay logs:
- Get the checkpoint ID of the failed log.
- Go to the Auth0 Logs to CloudWatch extension settings.
- Enter the checkpoint in the START_FROM field.
- Click the Save button to replay the failed logs.
To set up Slack integration, provide an Incoming Webhook URL to the SLACK_INCOMING_WEBHOOK field in the Auth0 Logs to CloudWatch extension settings.
The extension sends failed transaction notifications to Slack with the checkpoint code displayed in the message. You can also enable verbose notifications by turning on the SLACK_SEND_SUCCESS
setting.