View a markdown version of this page

Monitoring Amazon Quick using CloudWatch Logs - Amazon Quick
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).

Monitoring Amazon Quick using CloudWatch Logs

You can use Amazon CloudWatch Logs to deliver chat conversations, user feedback, agent hours usage, index storage usage, and activity in apps in Quick for you to analyze. These logs can be delivered to multiple destinations, such as CloudWatch, Amazon S3, or Amazon Data Firehose (standard rates apply).

Important

Set up vended log delivery shortly after enabling Amazon Quick AI features. Logs are not retroactive – you only receive events that occur after delivery is configured.

The following are examples of tasks you can complete with logs from Amazon Quick:

  • Identify common user queries and pain points by reviewing the chat message content.

  • Monitor the quality of responses by looking at metrics like feedbackReason.

  • Understand user sentiment and satisfaction by analyzing the feedback data, including comments and usefulness ratings.

  • Generate custom dashboards and reports to track key metrics and trends over time.

  • Identify and analyze cases where the chat returned no answer or the user query was blocked.

  • Monitor agent hours usage.

  • Track index storage usage across knowledge bases and Spaces.

  • Track knowledge base sync operations and identify document crawl or indexing failures.

  • See who opens your apps and find out why an app fails for some users.

Important

Logs from conversations might include sensitive or personally identifiable data passed in the chats. You can filter out this information from your logs when setting up logs subscription. Or you can mask this data on your logs using CloudWatch Logs masking policies. For more information, see Help protect sensitive log data with masking.

Supported log destinations

Amazon Quick can deliver logs to the following destinations:

  • Amazon CloudWatch Logs – For real-time monitoring and analysis

  • Amazon S3 – For long-term storage and batch processing

  • Amazon Data Firehose – For streaming analytics and data transformation

Supported log types

Amazon Quick supports the following log types. You specify one of these values as the logType when you create a delivery source.

  • CHAT_LOGS – Chat conversation interactions, including the user message, system response, and status.

  • FEEDBACK_LOGS – User feedback on chat responses, such as usefulness ratings and reasons.

  • AGENT_HOURS_LOGS – Agent hours usage for each agent.

  • AGENT_METADATA_LOGS – Lifecycle events for chat agents, such as creation, updates, and deletion.

  • INDEX_USAGE_LOGS – Per-source index storage metrics for knowledge bases and Spaces.

  • KB_FILE_SYNC_LOGS – Per-document knowledge base sync status, including crawl and indexing failures.

  • DLP_LOGS – Data loss prevention enforcement decisions and configuration changes.

  • APPS_LOGS – Activity in apps in Quick, such as app opens, dataset queries, app storage operations, action invocations, and model invocations, including requests that were refused.

  • TOOL_CALL_LOGS – Permission decisions and approvals for the tools that chat agents use, such as creating an issue or sending a message.

Prerequisites

Before you can enable logging, make sure that you have the following:

  • An active Amazon Quick instance with Enterprise or Professional subscriptions

  • Appropriate IAM permissions to configure log delivery

  • A destination configured for your logs (CloudWatch Logs, Amazon S3 bucket, or Firehose)

Configure logging

To enable logging for Amazon Quick chat and feedback, configure IAM permissions, create a delivery source and destination, and verify log delivery.

Set up IAM permissions

To set up CloudWatch Logs for Amazon Quick, use the following IAM policy examples to grant the necessary permissions.

{ "Version": "2012-10-17", "Statement": [{ "Sid": "QuicksightLogDeliveryPermissions", "Effect": "Allow", "Action": "quicksight:AllowVendedLogDeliveryForResource", "Resource": "*" }] }

If your Quick account uses a customer managed Amazon KMS key, the key policy must also allow the delivery.logs.amazonaws.com service principal. This applies to every log type. Without the following JSON key policy statement, log delivery can't encrypt your records and drops them.

{ "Effect": "Allow", "Principal": { "Service": "delivery.logs.amazonaws.com" }, "Action": [ "kms:GenerateDataKey", "kms:Decrypt" ], "Resource": "*", "Condition": { "StringEquals": { "kms:EncryptionContext:SourceArn": "arn:partition:logs:your-region:your-account-id:*" } } }

Configure log subscription

For example IAM policies with all the required permissions for your specific logging destination, see Enable logging from Amazon services in the Amazon CloudWatch Logs User Guide.

Create a delivery source with the PutDeliverySource CloudWatch Logs API operation. Give the delivery source a name and for resourceArn, specify the ARN of your application. For logType, specify one of the supported log types (see Supported log types).

{ "logType": "CHAT_LOGS", "name": "my-quick-suite-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "FEEDBACK_LOGS", "name": "my-quick-suite-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "AGENT_HOURS_LOGS", "name": "my-quick-suite-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "INDEX_USAGE_LOGS", "name": "my-quick-index-usage-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "KB_FILE_SYNC_LOGS", "name": "my-quick-kb-file-sync-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "AGENT_METADATA_LOGS", "name": "my-quick-agent-metadata-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "DLP_LOGS", "name": "my-quick-dlp-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }

The following PutDeliverySource request creates a delivery source for the TOOL_CALL_LOGS log type. Replace my-quick-tool-call-delivery-source, your-region, and your-account-id with your own values.

{ "logType": "APPS_LOGS", "name": "my-quick-apps-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }
{ "logType": "TOOL_CALL_LOGS", "name": "my-quick-tool-call-delivery-source", "resourceArn": "arn:aws:quicksight:your-region:your-account-id:account/your-account-id" }

This request includes the following fields.

logType

The log type to deliver. For tool call logs, this is TOOL_CALL_LOGS.

name

A name for the delivery source.

resourceArn

The ARN of your Amazon Quick account.

To enable user conversation logging with the CloudWatch Logs API operations, you call the PutDeliverySource, PutDeliveryDestination, and CreateDelivery API operations.

Note

Vended-log delivery is per Region. Each delivery captures only the activity that occurs in the Region specified by the resourceArn in PutDeliverySource. To receive logs from multiple Regions, configure a separate delivery in each Region.

Choose or change the fields in a delivery

Each log type has a list of allowed fields. A delivery created without recordFields uses the default list of its log type. It also receives any field that Quick later adds to that list. You can set a delivery's own list with CreateDelivery or UpdateDeliveryConfiguration. A delivery with its own list sends exactly those fields, in that order. It does not receive fields later added to the default list. Opt-in fields are delivered only if you name them in your own list. Your own list must include every mandatory field.

To add or remove fields, replace the delivery's field list with UpdateDeliveryConfiguration. The new list replaces the old one. Repeat for each delivery and Region.

To change the fields of a delivery
  1. Get the allowed and mandatory fields of the log type. Replace log-type with a log type such as CHAT_LOGS, and destination-type with CWL, S3, or FH. The following Amazon CLI command lists them.

    aws logs describe-configuration-templates --service quicksight \ --log-types log-type --delivery-destination-types destination-type \ --query 'configurationTemplates[0].allowedFields'
  2. Update the delivery with the complete list. To find the delivery ID, use aws logs describe-deliveries. The following Amazon CLI command adds the CHAT_LOGS opt-in fields latency, time_to_first_token, and web_search to the default list. Replace delivery-id with the ID of your delivery.

    aws logs update-delivery-configuration --id delivery-id --record-fields \ resource_arn event_timestamp logType accountId user_arn user_type status_code \ conversation_id system_message_id message_scope user_message_id user_message \ agent_id flow_id system_text_message user_selected_resources action_connectors \ cited_resource file_attachment namespace surface_type latency time_to_first_token web_search

Records delivered after the update contain the fields in the new list. Records already delivered do not change.

Verify log delivery

After you configure log delivery, verify that logs are being delivered to your destination:

  • Verify the setup: Verify the list of deliveries that have been created in the account by using the DescribeDeliveries API in CloudWatch Logs.

  • CloudWatch Logs: Check the specified log group for new log streams.

  • Amazon S3: Monitor your bucket for new log files.

  • Firehose: Verify data is flowing through your delivery stream.

Log schema and format

Each Amazon Quick log type has its own schema. The field names, including the log type and account identifiers, vary by log type – for example, chat and feedback logs use logType and accountId, while other log types use log_type and account_id. The fields for each log type are listed in the following sections.

Chat logs

Chat logs capture conversation interactions:

  • user_arn – Amazon Quick user ARN associated with the event

  • user_type – Amazon Quick user type associated with the event (for example, ADMIN_PRO)

  • status_code – Status of the chat request (for example, success, request_blocked, no_answer_found)

  • conversation_id – Unique ID for the user conversation

  • system_message_id – System-generated message ID

  • message_scope – Scope of the message (for example, all_resources, specific_resources, no_resources)

  • user_message_id – Unique ID of the user message

  • user_message – User message in the conversation

  • agent_id – Unique ID of the chat agent, or SYSTEM for the default agent

  • flow_id – Unique ID of the Amazon Quick Flow, or - if not a flow invocation

  • system_text_message – System response in the conversation

  • user_selected_resources – List of resources selected by user

  • action_connectors – List of connectors available in the conversation

  • cited_resource – List of cited resources

  • file_attachment – List of files attached by user

  • resource_arn – Resource ARN of your Amazon Quick account

  • event_timestamp – Timestamp of the event

  • logType – CHAT_LOGS

  • accountId – Amazon account ID

  • namespace – (Default, String) Amazon Quick namespace of the user, taken from user_arn

  • surface_type – (Default, String) Client the message came from (for example, WEB_EXPERIENCE, QUICK_DESKTOP, BROWSER_EXTENSION_CHROME, MOBILE_EXPERIENCE, SLACK, OUTLOOK_ADD_IN_NATIVE_AUTH)

  • latency – (Opt-in, Long) Time from the request to the end of the response, in milliseconds

  • time_to_first_token – (Opt-in, Long) Time from the request to the first part of the response, in milliseconds, or 0 when not measured. It currently equals latency except for chats from the Quick desktop app and Office add-ins, so treat it as a time to first token only when it is greater than 0 and less than latency.

  • web_search – (Opt-in, Boolean) true when the web search connector (quicksuite-websearch) was available for the message, as in action_connectors. It does not show whether a web search ran.

Fields marked Opt-in are delivered only if you add them to the delivery's field list (see Choose or change the fields in a delivery). All other fields are in the default field list.

When you configure chat log delivery, Quick also delivers temporary conversations to chat logs, including incognito conversations on desktop. These conversations are excluded from history and memory. Each record includes the user_arn and user_type of the person who started the conversation.

The following is an example of chat logs:

{ "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johnstiles", "user_type": "ADMIN_PRO", "status_code": "success", "conversation_id": "c11ba72c-ff18-4213-9686-1952bb547c19", "system_message_id": "42a37690-1804-442b-8368-3d34570dd2cd", "message_scope": "all_resources", "user_message_id": "5ec45e03-bf22-40c7-b32a-d69eb015f86b", "user_message": "What is in this document?", "agent_id": "SYSTEM", "flow_id": "-", "system_text_message": "Here is a summary of the attached document.", "user_selected_resources": [{"resourceId": "ALL", "resourceType": "space"}], "action_connectors": [{"actionConnectorId": "quicksuite-documentation"}, {"actionConnectorId": "quicksuite-websearch"}], "cited_resource": [{"citedResourceType": "document", "citedResourceId": null, "citedResourceName": "example-document.html"}], "file_attachment": [{"fileAttachmentType": "html", "fileAttachmentName": "example-document.html"}], "namespace": "default", "surface_type": "WEB_EXPERIENCE", "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1787185484508, "logType": "CHAT_LOGS", "accountId": "111122223333" }

Feedback logs

Feedback logs capture user feedback on chat responses:

  • user_arn – Amazon Quick user ARN associated with the event

  • user_type – Amazon Quick user type associated with the event (for example, ADMIN_PRO)

  • status_code – Status of the event delivery

  • conversation_id – Unique ID of the conversation

  • system_message_id – System generated message ID

  • user_message_id – Unique ID of user message

  • feedback_type – Type of feedback (for example, Not Useful, Useful)

  • feedback_reason – Feedback reason selected by the user

  • feedback_details – (Optional) Additional details provided by the user

  • resource_arn – Resource ARN of your Amazon Quick account

  • event_timestamp – Timestamp of the event

  • logType – FEEDBACK_LOGS

  • accountId – Amazon account ID

  • namespace – (Default, String) Amazon Quick namespace of the user, taken from user_arn

The following is an example of feedback logs:

{ "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johnstiles", "user_type": "ADMIN_PRO", "status_code": "success", "conversation_id": "c11ba72c-ff18-4213-9686-1952bb547c19", "system_message_id": "42a37690-1804-442b-8368-3d34570dd2cd", "user_message_id": "5ec45e03-bf22-40c7-b32a-d69eb015f86b", "feedback_type": "Not Useful", "feedback_reason": "Too wordy", "feedback_details": "The answer included too much background information.", "namespace": "default", "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1787185500123, "logType": "FEEDBACK_LOGS", "accountId": "111122223333" }

Agent hours logs

This log type captures the usage logs for different agents within your Quick account:

  • user_arn – Amazon Quick user ARN associated with the event

  • subscription_type – Subscription tier of the user. Values: ENTERPRISE, PROFESSIONAL.

  • reporting_service – The Quick surface that consumed agent hours. Current values include FLOW, AUTOMATION, and RESEARCH. New values might appear as additional Quick features begin metering agent hours.

  • usage_group – Whether the usage is covered by the subscription entitlement or billed as overage. Values:

    • Included – Usage within the monthly entitlement grant for the subscription tier. No incremental charge.

    • Extra – Overage beyond the monthly grant. Billed on consumption.

  • usage_hours – Decimal value indicating the agent hours consumed for this record

  • service_resource_arn – ARN of the resource that consumed the hours (for example, a flow, automation, or research session)

  • resource_arn – Resource ARN of your Amazon Quick account

  • event_timestamp – Time the usage was reported, as Unix epoch time in seconds. Other Quick log types use milliseconds.

  • logType – AGENT_HOURS_LOGS

  • accountId – Amazon account ID

The following is an example of Agent Hours logs:

{ "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johnstiles", "subscription_type": "ENTERPRISE", "reporting_service": "RESEARCH", "usage_group": "Included", "usage_hours": 0.0928, "service_resource_arn": "arn:aws:quicksight::111122223333:research/a11b2bbc-c123-3abc-a12b-12a34b5c678d", "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1787183715, "logType": "AGENT_HOURS_LOGS", "accountId": "111122223333" }

Agent metadata logs

Agent metadata logs capture lifecycle events for chat agents, including creation, updates, permission changes, and deletion. One record is emitted per agent operation:

  • user_arn – Amazon Quick user ARN associated with the event.

  • event_name – The agent lifecycle operation. Values include CreateAgent, UpdateAgent, DeleteAgent, UpdateAgentPermissions, and others as new operations are added.

  • event_version – Schema version of the log record.

  • agent_id – UUID of the agent.

  • agent_arn – Full ARN of the agent.

  • agent_name – Display name of the agent.

  • agent_status – Current status of the agent (for example, ACTIVE).

  • request_id – Request identifier for the operation.

  • description – Agent description text.

  • spaces – JSON array of spaces attached to the agent.

  • permissions_granted – Permissions added in this operation.

  • permissions_revoked – Permissions removed in this operation.

  • permissions_state – Current permissions after the operation.

  • update_action – Not populated.

  • version – Agent version number.

  • icon_id – Icon identifier for the agent.

  • magic_builder_query – The natural language query used to create the agent via the builder.

  • instructions – Not populated.

  • failed_to_add_spaces – Spaces that could not be attached.

  • failed_to_remove_spaces – Spaces that could not be detached.

  • draft_discarded – Not populated (always false).

  • custom_prompt_input – Custom prompt input configured for the agent.

  • welcome_message – Welcome message shown to users of the agent.

  • starter_prompts – Starter prompts suggested to users of the agent.

  • resource_arn – Resource ARN of your Amazon Quick account.

  • event_timestamp – Timestamp of the event.

  • log_type – AGENT_METADATA_LOGS.

  • account_id – Amazon account ID.

Note

The custom_prompt_input, welcome_message, and starter_prompts fields contain sensitive content. When you configure a customer managed Amazon KMS key for delivery, these fields are encrypted. Without a key, they are delivered in cleartext.

The following is an example of an agent metadata log for a CreateAgent event:

{ "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe", "event_version": "1.0", "event_name": "CreateAgent", "agent_id": "12345678-90ab-cdef-1234-567890abcdef", "request_id": "fedcba98-7654-3210-fedc-ba9876543210", "agent_arn": "arn:aws:quicksight:us-east-1:111122223333:agent/12345678-90ab-cdef-1234-567890abcdef", "agent_name": "Project Status Assistant", "agent_status": "ACTIVE", "description": "An agent that helps track project status and find relevant documentation.", "spaces": "[{\"Arn\": \"arn:aws:quicksight:us-east-1:111122223333:space/11112222-3333-4444-5555-666677778888\"}]", "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1787185396000, "log_type": "AGENT_METADATA_LOGS", "account_id": "111122223333" }

Index usage logs

Index usage logs capture per-source storage metrics for knowledge bases and Spaces. Events are published whenever a change occurs (created, updated, synced, or deleted):

  • user_arn – Amazon Quick user ARN associated with the event

  • consumed_index_size – Total size (in bytes) consumed by the entire index

  • source_type – Type of source: SPACE or KB

  • source_name – Display name of the Space or knowledge base

  • source_arn – Full ARN of the source

  • consumed_source_size – Size (in bytes) consumed by this individual source

  • consumed_source_doc_count – Number of documents in this source

  • resource_arn – Resource ARN of your Amazon Quick account

  • event_timestamp – Timestamp of the event

  • log_type – INDEX_USAGE_LOGS

  • account_id – Amazon account ID

The following is an example of index usage logs:

{ "account_id": "111122223333", "event_timestamp": 1774911984257, "log_type": "INDEX_USAGE_LOGS", "user_arn": "arn:aws:quicksight::111122223333:user/default/user", "resource_arn": "arn:aws:quicksight:us-west-2:111122223333:account/111122223333", "consumed_index_size": 500000, "source_type": "SPACE", "source_name": "my-space", "source_arn": "arn:aws:quicksight:us-west-2:111122223333:space/2744af89-31b2-423b-93a2-69b0cd0d7fa1", "consumed_source_size": 244436, "consumed_source_doc_count": 2 }
Note

Events are published per source on change. Not all sources emit events every day. To reconstruct the current state, use the most recent event per source_arn.

For information about building dashboards and running queries against index usage logs, see Monitor index storage usage.

Knowledge base file sync logs

Knowledge base file sync logs capture per-document sync status events. One log record is emitted per document per sync run:

  • document_id – Original document identifier such as a URL or file path.

  • document_title – Document title.

  • document_status – Terminal document status. Values: ADDED, MODIFIED, UNMODIFIED, DELETED, SKIPPED, BLOCKED, FAILED.

  • sync_result – High-level availability result. Values: AVAILABLE or UNAVAILABLE.

  • sync_id – Sync job execution ID.

  • data_source_id – Identifier of the data source that the knowledge base is connected to.

  • source_uri – Source URL of the document.

  • error_message – Error description when status is FAILED or SKIPPED.

  • error_mitigation – Actionable guidance for resolving the error.

  • error_type – Error code when status is FAILED or SKIPPED.

  • knowledge_base_id – UUID of the knowledge base that produced the log.

The following table describes the document_status values and their corresponding sync_result.

document_status sync_result Meaning
ADDED AVAILABLE New document successfully indexed
MODIFIED AVAILABLE Existing document re-indexed with changes
UNMODIFIED AVAILABLE Document content unchanged, no re-indexing needed
DELETED UNAVAILABLE Document removed from index
SKIPPED UNAVAILABLE Document filtered during crawl, such as by robots.txt or size limit
FAILED UNAVAILABLE Document failed during crawl or indexing

The following example shows a successful knowledge base file sync log where a document was added to the knowledge base:

{ "resource_arn": "arn:aws:quicksight:us-west-2:111122223333:account/111122223333", "event_timestamp": 1781296858575, "log_type": "KB_FILE_SYNC_LOGS", "account_id": "111122223333", "document_id": "https://docs.aws.amazon.com/quick/latest/userguide/monitoring-cloudwatch-logs.html", "document_title": "Monitoring Amazon QuickSight usage using CloudWatch Logs", "document_status": "ADDED", "sync_result": "AVAILABLE", "sync_id": "86a70a9a-cad9-4fc6-8881-e3909c8954d2", "data_source_id": "56225744-18bc-4373-a91f-861dd1c3d566", "source_uri": "https://docs.aws.amazon.com/quick/latest/userguide/monitoring-cloudwatch-logs.html", "knowledge_base_id": "b0bd0a47-8095-439d-9dff-c64bd5fe3fa3" }

The following example shows a skipped document log where crawling was skipped due to a validation error:

{ "resource_arn": "arn:aws:quicksight:us-west-2:111122223333:account/111122223333", "event_timestamp": 1781296492951, "log_type": "KB_FILE_SYNC_LOGS", "account_id": "111122223333", "document_id": "https://docs.aws.amazon.com/quick/latest/userguide/blocked-page.html", "document_title": "Blocked Page", "document_status": "SKIPPED", "sync_result": "UNAVAILABLE", "sync_id": "86a70a9a-cad9-4fc6-8881-e3909c8954d2", "data_source_id": "56225744-18bc-4373-a91f-861dd1c3d566", "source_uri": "https://docs.aws.amazon.com/quick/latest/userguide/blocked-page.html", "error_message": "This URL wasn't crawled because crawling isn't allowed by its robots.txt file.", "error_mitigation": "Contact the website administrator for assistance.", "error_type": "VALIDATION_ERROR", "knowledge_base_id": "b0bd0a47-8095-439d-9dff-c64bd5fe3fa3" }

Data loss prevention (DLP) logs

Data loss prevention (DLP) logs capture DLP activity: the enforcement decision for each scanned file, and changes to your DLP configurations. Use them to audit policy changes and to monitor enforcement. The specific event is identified by event_type.

Every DLP_LOGS record includes these common fields:

  • resource_arn – Resource ARN of your Amazon Quick account

  • event_timestamp – Unix epoch time in milliseconds

  • log_type – DLP_LOGS

  • account_id – Amazon account ID

  • event_type – The DLP event: DLP_FILE_BLOCKED, DLP_FILE_WARNED, DLP_INSPECTION_FAILED, DLP_WARN_ACKNOWLEDGED, DLP_WARN_DECLINED, DLP_SETTING_CREATED, DLP_SETTING_UPDATED, DLP_SETTING_DELETED, DLP_SETTING_ENFORCEMENT_ENABLED, or DLP_SETTING_ENFORCEMENT_DISABLED

  • request_id – Unique identifier for the event

  • user_arn – Amazon Quick user ARN associated with the event (system for service-initiated events)

Enforcement events (DLP_FILE_BLOCKED, DLP_FILE_WARNED, DLP_INSPECTION_FAILED) add these fields:

  • dlp_job_id – Unique ID of the DLP scan job

  • dlp_setting_id – ID of the DLP configuration that evaluated the file

  • policy_action – Enforcement action applied (BLOCK, WARN)

  • file_name – Name of the scanned file (customer content; see the note that follows)

  • file_size – Size of the scanned file, in bytes

  • failure_type – (DLP_INSPECTION_FAILED only) Category of the failure, for example CUSTOMER_ERROR

  • policy_message – (DLP_FILE_WARNED and DLP_INSPECTION_FAILED) The warning message shown to the user, or the reason the inspection failed

Configuration events (DLP_SETTING_CREATED, DLP_SETTING_UPDATED, DLP_SETTING_DELETED) add these fields:

  • dlp_setting_id – ID of the DLP configuration

  • dlp_setting_name – Display name of the configuration

  • status – Configuration status (ACTIVE, INACTIVE) – reflects whether enforcement is enabled or disabled

  • provider_type – DLP provider (for example, MICROSOFT_PURVIEW)

  • auth_type – Provider authentication type (for example, CLIENT_SECRET)

  • provider_outage_mode – Action applied when the provider is unavailable (for example, BLOCK)

  • unmapped_action – Default action for files with no mapped label (for example, BLOCK)

  • last_updated_by – ARN of the principal that made the change

  • changes – (DLP_SETTING_UPDATED only) The fields that changed

The following is an example of a blocked file event:

{ "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1786510225000, "log_type": "DLP_LOGS", "account_id": "111122223333", "event_type": "DLP_FILE_BLOCKED", "request_id": "422518600001076813548728842", "dlp_setting_id": "dlp-config-prod-01", "dlp_job_id": "dlpjob-internal-1c5e20d9-8af4-4ad9-95ee-18c34cd62c76", "policy_action": "BLOCK", "file_name": "confidential.docx", "file_size": 64, "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe" }

The following is an example of an inspection failed event:

{ "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1786488697000, "log_type": "DLP_LOGS", "account_id": "111122223333", "event_type": "DLP_INSPECTION_FAILED", "request_id": "421276000001518855116675749", "dlp_setting_id": "dlp-config-prod-01", "dlp_job_id": "dlpjob-internal-f25e8e10-d831-4479-8f0d-e32d7b12b123", "policy_action": "BLOCK", "failure_type": "CUSTOMER_ERROR", "policy_message": "The QuickSight service role for SECRETS_MANAGER access is not configured. Verify your account's QuickSight service role setup.", "file_name": "confidential.docx", "file_size": 64, "user_arn": "system" }

The following is an example of a configuration updated event:

{ "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1786492367000, "log_type": "DLP_LOGS", "account_id": "111122223333", "event_type": "DLP_SETTING_UPDATED", "request_id": "327788200001887837483925731", "dlp_setting_id": "dlp-config-prod-01", "dlp_setting_name": "Production DLP policy", "status": "ACTIVE", "provider_type": "MICROSOFT_PURVIEW", "auth_type": "CLIENT_SECRET", "provider_outage_mode": "BLOCK", "unmapped_action": "BLOCK", "last_updated_by": "arn:aws:sts::111122223333:assumed-role/DlpAdmin/jane", "changes": { "unmapped_action": { "old": "WARN", "new": "BLOCK" } }, "user_arn": "system" }
Note

The file_name field is customer content. When you configure a customer managed Amazon KMS key for delivery, this field is encrypted. Without a key, Quick delivers it in cleartext.

App logs

With app logs, you can see what happens when users view your apps in Quick. You get one record for each app open and for each request that an app makes for a user, such as a dataset query or an app storage operation. You also get records for refused and failed requests, except requests that fail authentication, so you can see why an app fails for some users. The account that owns an app receives its records, and a single log delivery for APPS_LOGS covers every app in that account, so you don't need to set one up for each app.

The event_type field identifies the kind of activity:

  • OPEN – A user opened a published app, or was refused.

  • DATA_QUERY – The app queried one or more datasets for the user.

  • STORAGE – The app read, wrote, deleted, or listed items in app storage.

  • ACTION – The app invoked an action connector.

  • INFERENCE – The app invoked a model.

Quick can add new event_type, operation, and status_code values. Write queries that check for the values you want, such as status_code = "success", instead of listing the values you don't want.

A field that has no value for a record contains -. For example, model_id is - on every record whose event_type isn't INFERENCE. Each record contains the following fields.

  • event_timestamp – (Default, Long) When the event began, as Unix epoch time in milliseconds.

  • resource_arn – (Default, String) Resource ARN of your Amazon Quick account.

  • log_type – (Default, String) APPS_LOGS.

  • account_id – (Default, String) Amazon account ID of the app owner.

  • user_arn – (Default, String) Amazon Quick user ARN of the user who viewed the app. For an anonymous user of a public link, the ARN contains publicAnonymousUser. For an anonymous user of an embedded app, it contains anonymousUser.

  • user_type – (Default, String) Amazon Quick user type of the user (for example, ADMIN_PRO (Enterprise)), or - for an anonymous user.

  • namespace – (Default, String) Amazon Quick namespace. Currently always default.

  • status_code – (Default, String) Outcome of the request. Values:

    • success – The request did what the app asked.

    • consent_required – The user hasn't given the app the consent that the request needs.

    • access_denied – Quick refused the request. The user can't access the app, or the app can't access what it named. A consent that the user didn't give can also appear as this value.

    • integration_access_denied – The connected service refused the request, for example because a connector's credentials were rejected.

    • throttled – Quick limited the request rate, or the account's AI capacity is limited.

    • integration_throttled – The connected service or model limited the request rate.

    • not_found – Something that the request named doesn't exist.

    • invalid_request – The request wasn't valid.

    • conflict – An app storage write conflicted with another write.

    • action_disabled – The action is turned off on its connector.

    • connector_version_not_found – The connector version that the app uses no longer exists.

    • integration_error – The connected service or model failed.

    • internal_error – Quick failed to complete the request.

  • event_type – (Default, String) Type of event, as described earlier in this section.

  • app_id – (Default, String) ID of the app.

  • app_version – (Default, String) ID of the app version that served the request, or - when an open was refused. This ID isn't a number, so don't sort versions by it.

  • session_id – (Default, String) ID of the visit.

  • surface – (Default, String) Client that the app was viewed in. Values: WEB, DESKTOP, MOBILE_WEB, or - when the client wasn't reported. Apps embedded in your own website aren't reported separately yet.

  • duration_ms – (Default, Integer) Time that Quick took to handle the request, in milliseconds. This isn't the user's total wait time. It's - on records for a consent prompt that the user declined, or for an open that was blocked because the account's AI capacity is limited.

  • request_id – (Default, String) ID of the request. Include it when you contact Amazon Support. It's - on the same records as duration_ms.

  • dataset_ids – (Default, JSON array) IDs of the datasets that a DATA_QUERY named, in query order (for example, ["dataset-1","dataset-2"]), or [] on other records.

  • storage_scope – (Default, String) On STORAGE, whether the item is private to the user (PRIVATE) or shared across the app (SHARED).

  • operation – (Default, String) The operation. On STORAGE: GET_ITEM, PUT_ITEM, DELETE_ITEM, LIST_ITEMS, LIST_ITEMS_BY_TAG, LIST_TABLES, or CREATE_UPLOAD_URL.

  • table_name – (Default, String) On STORAGE, the app storage table. It's - on LIST_TABLES.

  • storage_key – (Default, String) On STORAGE, the item key that the app supplied. It's - on operations that don't name one item.

  • action_id – (Default, String) On ACTION, the action that the app invoked (for example, GetIssue).

  • connector_id – (Default, String) On ACTION, the ID of the action connector.

  • operation_category – (Default, String) On ACTION, whether the action reads (READ) or changes (WRITE) data.

  • model_id – (Default, String) On INFERENCE, the model that the app used.

All fields are in the default field list. The event_timestamp, resource_arn, log_type, and account_id fields are mandatory. Your delivered records also contain space_id, dashboard_id, sheet_id, and visual_id, reserved for event types not yet reported. These are always - today.

App logs contain no prompts, query text, stored item values, or query results. The table_name and storage_key fields contain names that the app chooses, and you receive them as is.

Note

The user_arn, user_type, namespace, status_code, table_name, and storage_key fields are encrypted when your account uses a customer managed Amazon KMS key. Without a key, they are delivered in cleartext. If you use a customer managed key, its key policy must contain the statement in Set up IAM permissions. Otherwise, log delivery drops your app log records.

The following is an example of an app log for an OPEN event:

{ "event_timestamp": 1794187285000, "resource_arn": "arn:aws:quicksight:us-west-2:111122223333:account/111122223333", "log_type": "APPS_LOGS", "account_id": "111122223333", "user_arn": "arn:aws:quicksight:us-west-2:111122223333:user/default/johnstiles", "user_type": "ADMIN_PRO", "namespace": "default", "status_code": "success", "event_type": "OPEN", "app_id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "app_version": "e1f2a3b4-5678-90ab-cdef-EXAMPLE22222", "session_id": "b2c3d4e5-6789-0abc-def1-EXAMPLE33333", "surface": "WEB", "duration_ms": 182, "request_id": "c3d4e5f6-7890-abcd-ef12-EXAMPLE44444", "dataset_ids": [], "storage_scope": "-", "operation": "-", "table_name": "-", "storage_key": "-", "action_id": "-", "connector_id": "-", "operation_category": "-", "model_id": "-" }

Tool call logs

Tool call logs record the permission decisions for the tools that chat agents use on behalf of your users, such as creating a Jira issue or sending a Slack message. Use them to audit each tool call: whether Quick ran it, sent it to a user for approval, or blocked it, and who approved it. The event_type field identifies the specific event.

Tool call logs contain identifiers and decision values only. They don't contain tool inputs, tool outputs, or the agent's reasoning.

Every permission check emits a PERMISSION_EVALUATED record. A call that Quick allows immediately produces one record, with a verdict of ALLOW. A call that needs approval and receives it usually produces three records: the initial REVIEW evaluation, an AUTO_APPROVED or HUMAN_APPROVED event, and a final ALLOW evaluation when the call runs. A call that your policies deny produces a single PERMISSION_EVALUATED record with a DENY verdict, and the call doesn't run. A call that a user denies produces the initial REVIEW evaluation and a HUMAN_DENIED event, with no final evaluation because the call doesn't run.

When Smart Approvals can't write its approval, Quick emits an AUTO_APPROVAL_REJECTED event and evaluates the permission again. The records that follow depend on that evaluation and on any later decision that the user makes, so the number of records for such a call varies.

Records for the same tool call share tool_call_id when that identifier is available.

Every TOOL_CALL_LOGS record includes these common fields:

  • resource_arn – Resource ARN of your Amazon Quick account.

  • event_timestamp – Unix epoch time in milliseconds when Quick made the decision.

  • log_type – TOOL_CALL_LOGS.

  • account_id – Amazon account ID.

  • event_id – Unique identifier for the record. Use it to remove duplicate records.

  • event_type – The event that the record represents. Approval and denial outcomes appear in this field.

  • status_code – Always success. This field doesn't express the permission, approval, or denial outcome.

  • connector_id – Connector that the tool belongs to.

  • action_id – Tool or operation that the agent called, for example jira_create_issue.

Quick includes the following fields when they're known. When a value isn't known, the field is -.

  • user_arn – Amazon Quick user that the agent acted for. For scheduled and triggered runs, this is the user that the run acts on behalf of, who might not be the person reading the log.

  • namespace – Amazon Quick namespace of the user.

  • conversation_id – Conversation that made the tool call. Use it to join a tool call to its conversation in CHAT_LOGS.

  • agent_id – Custom chat agent that made the call. This field is empty for the default assistant.

  • surface_type – Client experience where the call was made. This field uses the same values as CHAT_LOGS.

  • tool_call_id – Groups the records for one tool call when the identifier is available. This field is - when the producer or the approval client doesn't supply a valid tool call identifier.

  • outpost_id – Set only for local tools that run on a user's device.

Records also contain user_type, user_message_id, and system_message_id. Quick currently delivers these fields as -.

The event_type field takes one of the following values.

PERMISSION_EVALUATED

Quick evaluated the tool permission policies for a tool call. This is the only event type that has a verdict.

AUTO_APPROVED

Smart Approvals approved the tool call and wrote an ALLOW_ONCE grant.

AUTO_APPROVAL_REJECTED

Quick couldn't write the Smart Approvals grant, so it evaluates the permission again. The records that follow depend on that evaluation and on any decision that the user makes.

HUMAN_APPROVED

The user approved the tool call.

HUMAN_DENIED

The user denied or canceled the tool call, so the call doesn't run.

Decision records add the following fields:

  • verdict – The policy result, present only on PERMISSION_EVALUATED records: ALLOW (the call runs), REVIEW (the call waits for approval), or DENY (Quick blocks the call). On approval and denial records, this field is -.

  • decided_by – The policy layer that produced the verdict, on REVIEW and DENY verdicts when it's known: SYSTEM (a built-in Quick rule), ADMIN (an administrator's tool permission setting), CREATOR (the agent creator's setting), USER (the user's own setting), GUARDRAIL (a guardrail), NO_POLICY_DEFAULT (no setting matched, so the default applied), AUTO_APPROVAL_LIMIT (a Smart Approvals usage limit), or EVALUATION_FAILED (the permission check couldn't complete, so Quick blocked the call).

  • review_reason – Why approval was needed, on some REVIEW verdicts: CUSTOM_RULE_BREACHED or AUTO_APPROVAL_LIMIT_BREACH.

  • approved_by – Who approved the call: HUMAN or SMART_APPROVALS.

  • approver_arn – Amazon Quick user who approved the call, on HUMAN_APPROVED records.

  • approval_scope – How long the approval lasts: ALLOW_ONCE (this call only), ALLOW_SESSION (the rest of the conversation), or ALLOW_ALWAYS (until the user removes it). Smart Approvals always uses ALLOW_ONCE.

The following example shows the three records for a tool call that Smart Approvals approved:

{ "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1793660400001, "log_type": "TOOL_CALL_LOGS", "account_id": "111122223333", "event_id": "3f1c2b9e-7a4d-4e1a-9c0b-2d6f8e5a1b7c", "event_type": "PERMISSION_EVALUATED", "status_code": "success", "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe", "namespace": "default", "conversation_id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "tool_call_id": "tooluse_EXAMPLE1", "connector_id": "jira", "action_id": "jira_create_issue", "verdict": "REVIEW", "decided_by": "USER" } { "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1793660400870, "log_type": "TOOL_CALL_LOGS", "account_id": "111122223333", "event_id": "8d2e4f6a-1b3c-4d5e-8f7a-9b0c1d2e3f4a", "event_type": "AUTO_APPROVED", "status_code": "success", "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe", "namespace": "default", "conversation_id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "tool_call_id": "tooluse_EXAMPLE1", "connector_id": "jira", "action_id": "jira_create_issue", "approved_by": "SMART_APPROVALS", "approval_scope": "ALLOW_ONCE" } { "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1793660400902, "log_type": "TOOL_CALL_LOGS", "account_id": "111122223333", "event_id": "c4b3a291-8e7d-4c6b-a5f4-e3d2c1b0a9f8", "event_type": "PERMISSION_EVALUATED", "status_code": "success", "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe", "namespace": "default", "conversation_id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "tool_call_id": "tooluse_EXAMPLE1", "connector_id": "jira", "action_id": "jira_create_issue", "verdict": "ALLOW", "approved_by": "SMART_APPROVALS", "approval_scope": "ALLOW_ONCE" }

The following example shows a tool call that an administrator's setting blocked:

{ "resource_arn": "arn:aws:quicksight:us-east-1:111122223333:account/111122223333", "event_timestamp": 1793660600001, "log_type": "TOOL_CALL_LOGS", "account_id": "111122223333", "event_id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9", "event_type": "PERMISSION_EVALUATED", "status_code": "success", "user_arn": "arn:aws:quicksight:us-east-1:111122223333:user/default/johndoe", "namespace": "default", "conversation_id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "tool_call_id": "tooluse_EXAMPLE2", "connector_id": "slack", "action_id": "slack_send_message", "verdict": "DENY", "decided_by": "ADMIN" }

When an earlier ALLOW_SESSION or ALLOW_ALWAYS approval, or a policy setting, allows a tool call, approved_by is -.

Note

When you configure a customer managed Amazon KMS key for delivery, Amazon Quick encrypts the user_arn, namespace, status_code, conversation_id, agent_id, surface_type, and approver_arn fields.

Security considerations

Consider the following security practices when you configure log delivery:

  • Encryption – Use customer managed Amazon KMS keys for sensitive data. If you use a customer managed key, add the key policy statement described earlier in this topic. Otherwise, log delivery drops your records.

  • Access control – Implement least-privilege IAM policies.

  • Data retention – Configure appropriate retention policies for your compliance requirements.