Now that the DataSync task has completed successfully, check the Cloud One - File Storage Security console for scan details.
In the AWS console, in the AWS region where the File Storage stacks were deployed, navigate to CloudWatch.
From the left-hand menu, select Logs Insight.
Select from the drop down the ScannerLambda log stream.
To identify scan errors, run the following query:
fields @timestamp, @message
| filter @message like "sqs_message_id"
| filter scanner_status != "0"
| display scanner_status, scanner_status_message, scanning_result.Error, file_url
The amount of scan errors found in the File Storage Security Console should match the Log insights query result.
The reason for the scan error being produced has to do with how the DataSync task operates.
During the task, DataSync creates a temporary stage .../.aws-datasync/...
in S3 to move objects to. These temporary stages are removed once the task is completed. The stage does not exist for the File Storage Security scanner to ingest and scan, thus an error is generated and links to a file that does not exist after the task completes.