Overview
The audit log records every security-relevant event in profClaw: tool calls, approval decisions, security guard blocks, authentication events, and configuration changes. Logs are append-only and cannot be modified after writing.What Gets Logged
Log Format
Each audit entry is a structured JSON line:"apiKey": "***".
Viewing Audit Logs
CLI
Via API
Log Files
Audit logs are written to:- SQLite (default): stored in profClaw’s database
- File:
~/.profclaw/audit.jsonl(enable withauditLog.file: true) - Syslog: Forward to external syslog server (enterprise)
Configuration
Compliance Reports
Generate compliance reports from the audit log:Alerting
Configure alerts for high-risk events:Log Retention
Audit logs are retained for 90 days by default. After retention expires, entries are permanently deleted. Adjust retention for compliance requirements:Related Docs
Guards
Guard decisions that generate audit events.
Security Modes
Mode decisions are audit-logged.