Invoke the Log Scanner function deployed in your AWS account to send historical logs from Amazon S3 to TrendAI Vision One™.
NoteThis feature is not yet available in all regions.
|
After you add an Amazon S3 connector,
TrendAI Vision One™ collects only new log files added to the bucket. Historical logs (log files uploaded
before adding the connector) are not collected automatically. Before you begin, ensure
that you have already added an Amazon S3 connector and confirm you have permission to view and invoke Lambda functions in
the AWS account you onboarded.
Procedure
- Sign in to your AWS account and go to the Lambda console.
- Locate the
tmv1-clm-s3g-<Region>-LogScannerfunction in the region where you deployed the CloudFormation template. - Create a private test event for the function.

Note
For instructions on creating test events, see the AWS documentation. - In the event JSON, specify the bucket and time range of the historical logs to collect.

Note
The following is an example of an event JSON. To limit the scan to a specific location, specify an Amazon S3 prefix forfolder, such aslogs/2026/06/.{ "bucketName": "your-s3-bucket-name", "startTimestamp": 1780444800, "endTimestamp": 1781049600 }The maximum time range per invocation is 180 days. To collect historical logs spanning a longer period, invoke the function multiple times with consecutive time ranges. - Run the test event to invoke the function.

Tip
To collect historical logs on a schedule or as part of an automated workflow, invoke the function synchronously using the AWS CLI. For more information, see the AWS documentation. - Confirm the execution result reports the number of files found before continuing.
- In
TrendAI Vision One™, go to and verify the data received by Amazon S3.

Tip
-
Depending on the number and size of the files, log collection might take several minutes.
-
If no files were found, confirm that
bucketNamematches the configured bucket, and that both timestamps are Unix timestamps in seconds rather than milliseconds. If the invocation fails, confirm that the time range does not exceed 180 days and thatstartTimestampis earlier thanendTimestamp.
-
