Log messages are sent to the Amazon CloudWatch log group that you created and specified in the initial set up. Each user log messages can be found in user-specific log stream in the log group. Log stream names are generated based on the user's device identifier and a user identifier.
For an authenticated user, the log stream name is
<device-identifier>.<user-identifier>. For an unauthenticated user, the log stream name is
The device identifier is the unique identifier provided by the user's hardware device and OS. You can use the Amplify Auth category to retrieve the user identifier for a specific user if needed. You can also retrieve the user identifier by visiting the Amazon Cognito console and inspecting the
User ID in User pools.
You can follow the following steps to access your logs in AWS Console:
- Log into AWS Console
- Navigate to Amazon CloudWatch
- In the left navigation panel and under the Logs menu, click the Log groups menu item.
- In the Log groups window, enter your log group name in the Filter field
- Click on your log group that is returned in the filtered results to view all log streams