Compliance Logs

Query and audit complete records of every AI call to meet enterprise compliance audit and post-hoc tracing requirements.

How to Access

In the tenant admin panel, navigate to "System Settings → Compliance Logs" to enter the log query page.

Data Source

Compliance logs are captured by the gateway layer for all AI requests/responses and asynchronously written to Elasticsearch via Kafka. Each tenant has an independent ES index (index name format: compliance-logs-{tenantId}) ensuring strict data isolation.

Log Fields

Each compliance log record contains the following fields:

  • Time: Timestamp of the request
  • Name: Name of the user who initiated the request
  • Email: Email of the user who initiated the request
  • Model: The AI model used
  • Content: Full request/response content (summary shown by default, click to expand)

Search Filters

Supports multi-condition combined search with the following dimensions:

User Filter

Select a specific user by name/email

Model Search

Fuzzy search by model name

Keyword Search

Fuzzy search on log content; matched keywords are highlighted in yellow

Time Range

Select start/end time to filter logs for a specific period

How to Use

  1. Enter the "Compliance Logs" page
  2. Set filter conditions as needed (user, model, keyword, time range)
  3. Click "Search" to get matching log results
  4. Click "Reset" to clear all filter conditions
  5. In the log list, click "Expand All" on a content row to view the full request/response
  6. Search keywords in content are highlighted in yellow

Important Notes

  • Logs are sorted by time in descending order, newest first
  • Logs are stored persistently to meet compliance retention requirements
  • Log data is strictly isolated between different tenants
  • Logs are written asynchronously and do not affect request processing latency