Skip to main content
← All posts·
Regulatory Compliance

C5 for Prompt, Trace, and Model Logging

How to design C5-aligned logging for prompts, model traces, tool calls, and retrieved context without creating unnecessary data protection risk.

Luca Berton7 min read

GenAI logging is a balancing act. Too little logging and you cannot investigate incidents or prove control operation. Too much raw logging and you create a sensitive data store full of prompts, documents, tool outputs, and personal data.

Log by Event Class

  • Identity events: user, tenant, session, MFA status, agent identity
  • Authorization events: requested action, resource ID, decision, reason, policy version
  • Retrieval events: query metadata, candidate IDs, allowed IDs, denied IDs, classification
  • Model events: provider, model, prompt template version, latency, error, safety result
  • Tool events: API, method, scope, outcome, approval status, error path

Handle Payloads Carefully

Prompt text, retrieved chunks, and tool payloads should have stricter retention and access controls than metadata. Store full payloads only when the investigation, quality, or regulatory need is clear. Mask secrets and avoid storing tokens entirely.

📘 Book

Kubernetes Recipes

A practical guide for container orchestration and deployment by Grzegorz Stencel & Luca Berton (Apress).

Watch on Skillshare →

Access Control for Logs

Logs from AI systems can contain the same sensitive data as production systems. Restrict access, require approval for sensitive trace inspection, log administrator access, and review permissions regularly.

Bottom Line

C5-aligned GenAI logging should reconstruct control decisions without turning observability into uncontrolled data replication. Metadata by default, sensitive payloads by exception, and strict access everywhere.

🎓 Course

Automating IT Infrastructure with Ansible

Learn Ansible to automate IT operations and enhance system reliability.

Start on Udemy →
C5
prompt logging
model traces
GenAI observability
AI agents
audit logs

Related Solution

Navigating AI adoption in a regulated environment? Our readiness assessment maps infrastructure, governance, and compliance gaps in 3-4 weeks.

Explore AI Readiness for Regulated Enterprises →

Need help applying this in your organization?

Get a free 30-minute assessment with actionable recommendations — whether we work together or not.

Book Your Free AI Platform Assessment

Or see AI readiness assessment scope & pricing

18+ years experience · Ex-Red Hat & Dell · Speaker at KubeCon EU 2026

Luca Berton

Written by

Luca Berton

CEO at Open Empower. 18+ years building enterprise infrastructure at JPMorgan Chase, Red Hat & Dell. Author of 9 technical books. Speaker at Red Hat Summit and KubeCon EU 2026. Instructor on Coursera, Pluralsight & Udemy.

Get more insights like this

Practical AI infrastructure and platform engineering guides — delivered to your inbox.

Subscribe to Newsletter →