OneTrust AI Log Analyzer

Overview

As organizations scale AI use cases, governance teams need a "single pane of glass" to monitor risk, performance, and compliance across AI assets. The AI Log Analyzer (AILA) helps you audit AI logs to understand how your AI agents and models handle personally identifiable information (PII). It supports Amazon Bedrock logs stored in Amazon S3 and Databricks inference tables.

The AI Log Analyzer randomly samples available AI-generated logs and uses OneTrust's classification and scanner capabilities to:

  • Detect PII in AI prompt and response logs
  • Generate key metrics for each AI asset:
    • Prompt PII count
    • Response PII count
    • Prompt PII categories (for example, email or phone number)
    • Response PII categories
  • Associate findings with the specific AI models or agents in your AI governance framework

Key Benefits

Out-of-band PII scans

Show committees, auditors, and regulators that PII scans run against logs generated by your models and agents. Compare PII consumption with the use cases defined in your AI project inventory.

PII findings linked to AI agents and models

Each metric maps to a persistent AI asset identifier, so history is preserved even if an asset is renamed. The platform shows friendly names.

Risk and compliance reporting

Use summaries of total scans and total PII found over time (for example, daily counts, last 30/90/365 days) to prioritize risk, respond to regulatory inquiries, and prepare governance reviews.

Stronger AI governance

Combine PII detection metrics with other risk indicators and, in later phases, use them to drive policy rules and automated actions.

Reuse of OneTrust data classification

Extend governance from data at rest to AI interaction logs with your existing classification infrastructure.

Supported Platforms

OneTrust AI Log Analyzer scans AI logs from the following platforms:
Platform Supported AI assets Log source
Amazon Bedrock Models Invocation logs in Amazon S3
Databricks Models and agents Inference tables

Prerequisites

You have access to OneTrust AI Governance with permissions to configure AI Automations. Refer to Lightweight Worker Node Deployment for AI Automations to create and deploy the lightweight worker node.

Amazon Bedrock

  • Amazon Bedrock invocation logging is enabled and configured to write logs to an Amazon S3 bucket. See Amazon Bedrock logging and S3 configuration.

  • The lightweight worker node has read access to that bucket, including the required IAM permissions, network routes, firewall rules, and VPC configuration. AI Log Analyzer automatically discovers the S3 bucket and log location.

Databricks

  • A Databricks administrator has configured inference tables for the model and agent serving endpoints you want to scan. AI Log Analyzer then scans these endpoints automatically.

Amazon Bedrock logging and S3 configuration

To use AI Log Analyzer with Amazon Bedrock, enable invocation logging to Amazon S3 and ensure Amazon Bedrock can write logs to the target bucket. Example S3 bucket policy:

JSON
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowBedrockWrite",
            "Effect": "Allow",
            "Principal": {
                "Service": "bedrock.amazonaws.com"
            },
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::bedrock-logs-bucket/*"
        }
    ]
}

The role or user that configures Amazon Bedrock logging must also be allowed to enable and view the logging configuration. Example IAM policy:

JSON
{
    "Effect": "Allow",
    "Action": [
        "bedrock:InvokeModel",
        "bedrock:PutModelInvocationLoggingConfiguration",
        "bedrock:GetModelInvocationLoggingConfiguration"
    ],
    "Resource": "*"
}

If the S3 bucket is accessed through browser-based tools or frontend applications, configure CORS on the bucket. Example:

JSON
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT",
            "POST"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [
            "Access-Control-Allow-Origin"
        ]
    }
]

Asset-Level Visibility and Verification

To use AI Log Analyzer, OneTrust AI Governance administrators deploy a lightweight worker node through AI Automations. For Databricks, a Databricks administrator must also configure inference tables for the endpoints you want to scan. No other configuration is needed in OneTrust.

Once AI Log Analyzer is running, PII and data classification metrics appear in the inventory record for each scanned model or agent under Details > Sensitive data classification. The following metrics are shown:

  • Prompt PII count - the total number of PII instances detected in prompts.

  • Prompt PII categories - the types of PII detected in prompts, such as phone numbers or email addresses

  • Response PII count - the total number of PII instances detected in responses.

  • Response PII categories - the types of PII detected in responses.Agent evaluation and observability metrics

Each metric shows the date of its last run. This lets you:

  • Review the most recent classification data. The data shown reflects the last day of activity since the last sync.

  • Compare classification results with the AI asset's declared use case and data in the inventory.

The details page shows results from the last day. Historical data is retained to support future enhancements such as trend analysis.

Known Limitations

The following limitations apply to AI Log Analyzer scans and results:

Sampling‑based scanning

Scans use a pre-configured sampling frequency rather than every log file.

Data classification scope

The analysis covers only PII detection in AI logs and uses the customer tenant's default scan profile. Custom or changing classification profiles are not supported.

Monitoring and Enforcing Thresholds

To monitor and enforce thresholds for reported metrics, we recommend setting up custom policies. You can track individual metrics or groups of metrics, such as prompt and response PII counts, against thresholds your organization defines. A breach of a threshold results in a policy violation, which helps surface deviations across a large inventory of models and agents.

For more information on creating custom policies, see the AI Policies Feature Guide.Policy: conditions for compliance