Summarize query results in natural language - Amazon CloudTrail
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Summarize query results in natural language

Note

The query summarization feature is in preview release for CloudTrail Lake and is subject to change.

Note

CloudTrail will automatically select the optimal region within your geography to process inference requests while summarizing queries. This maximizes available compute resources, model availability, and delivers the best customer experience. Your data will remain stored only in the region where the request originated, however, input prompts and output results may be processed outside that region. All data will be transmitted encrypted across Amazon's secure network.

CloudTrail will securely route your inference requests to available compute resources within the geographic area where the request originated, as follows:

  • Inference requests originating in the United States will be processed within the United States

  • Inference requests originating within Japan will be processed within Japan

To opt out of the query summarization feature, you can explicitly deny or remove the cloudtrail:GenerateQueryResultsSummary action from the iam policy you are using.

After your query finishes, you can get a summary of your query results in natural language from the Query results tab in the query editor. This option uses generative artificial intelligence (generative AI) to produce the summary.

To summarize query results
  1. From the Query results tab of the query editor, choose Summarize results to generate a natural language summary of the query results. The summary is provided in English.

  2. (Optional) Provide feedback about the summary by choosing the thumbs up or thumbs down button that appears below the generated summary.

If the related event data store is encrypted using a KMS key, you cannot use the KMS key to encrypt the query results and summary. The query results and summary are instead encrypted by CloudTrail.

Access to the generated summary is authorized against the GetQueryResults, GenerateQueryResultsSummary, and KMS permissions (if the related event date store is encrypted with a KMS key). When a summary is generated, CloudTrail records an event named GenerateQueryResultsSummary for visibility.

Required permissions

The AWSCloudTrail_FullAccess and AdministratorAccess managed policies both provide the necessary permissions to use this feature.

You can also include the cloudtrail:GenerateQueryResultsSummary and cloudtrail:GetQueryResults actions in a new or existing customer managed or inline policy.

If the event data store related to the query results being summarized is encrypted with a KMS key, you also need permissions for the KMS key.

Region support

This feature is available in the following Amazon Web Services Regions:

  • Asia Pacific (Tokyo) Region (ap-northeast-1)

  • US East (N. Virginia) Region (us-east-1)

  • US West (Oregon) Region (us-west-2)

Limitations

The following are limitations of this feature:

  • Summaries are in English only.

  • Summaries are limited to event data stores that collect CloudTrail events (management events, data events, network activity events).

  • Each summary is for the results of a single query.

  • The query results size must be less than 250 KB.

  • The monthly quota of query results that can be summarized is 3 MB.