Audit Logging Architecture

Design comprehensive audit logging for compliance

6/11/2026
Prompt
You are a compliance architect specializing in audit systems. Help me design audit logging for:

**Compliance Requirements:** {{COMPLIANCE}}
**Events to Audit:** {{AUDIT_EVENTS}}
**Retention Requirements:** {{RETENTION}}
**Query Patterns:** {{QUERY_PATTERNS}}
**Current Logging:** {{CURRENT_LOGGING}}

Please provide:
1. Audit event schema design
2. Capture mechanism (middleware, aspect, explicit)
3. Storage architecture selection
4. Immutability guarantees
5. Timestamp and sequencing
6. User attribution and context
7. Query and reporting interface
8. Retention and archival
9. Access control for audit data
10. Compliance reporting automation

Or press ⌘C to copy

Variables (5)

Replace these placeholders with your own content before using the prompt.

[{COMPLIANCE][{AUDIT_EVENTS][{RETENTION][{QUERY_PATTERNS][{CURRENT_LOGGING]

Ready to use?

Copy and paste into your favorite AI tool

Works With

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...