How do I check CloudWatch logs for errors when I import users into a user pool from a CSV file?
I want to check for errors that are reported when I import users into a user pool from a CSV file.
"I want to check for errors that are reported when I import users into a user pool from a CSV file.Short descriptionAmazon Cognito allows you to import users into an Amazon Cognito user pool from a specially formatted CSV file. This import process sets values for all user attributes except password. For more information, see Importing users into user pools from a CSV file.For information on common errors during the importing process, see How do I troubleshoot common errors with the importing process in Amazon Cognito?To find these errors, do the following:Find the user pool ID and name.Import the job name.Find the Cloudwatch log group.Use Cloudwatch log stream.ResolutionFind user pool ID and nameOpen the Amazon Cognito console.Note: If using the old interface, choose Manage User Pools.Search for the user pool where you ran the import job to find the name and ID of the user pool.Note the user pool name and ID.User pool ID and name example:- Pool Id - us-east-1_XXXXXXXXX- Pool Name - testuserimportFind the import job nameOld interfaceOpen the Amazon Cognito console.Choose Manager User Pools.Choose your user pool.In the navigation pane, choose Users and groups under General settings.Select Import Users.Note the failing job name.New interfaceOpen the Amazon Cognito console.Choose your user pool.Under the Userstab, find the Import users information.Note the failing job name.**Note:**You can view the CloudWatch logs from here by clicking on View logs for the failed import job. This will redirect you to the log group stream.Import job name example:import-Test1Find the Cloudwatch log groupOpen the Amazon CloudWatch console.Expand Logs in the navigation pane, and select Log Groups.Using the Log Groups search bar functionality, you can look for either the user pool ID or name. Doing this will filter for the specific log group of that user pool.CloudWatch log group example:/aws/cognito/userpools/{user_pool_id}/{user_pool_name}Find the CloudWatch log streamWhile still in CloudWatch, select the log group you found for your user pool during the previous steps.Select the Log Streams tab, and use the search filter functionality to find the log stream using import job name.Select the log stream to check the log events for import job error.CloudWatch log stream example:[Timestamp]    Cognito User Pools Import - Test Log [Timestamp]    Cognito User Pools Import - Test Log [Timestamp]    [FAILED] Line Number 2 - The User Record contains an invalid value for phone_number_verified. It must be true or false.Note: Based on this example, the error reported in CloudWatch Log Stream shows that the value for phone_number_verified field is set incorrectly.Related informationWorking with log groups and log streamsFollow"