Skip to main content

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:
Sensitive values in params (tokens, passwords, keys) are automatically masked: "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 with auditLog.file: true)
  • Syslog: Forward to external syslog server (enterprise)

Configuration

Compliance Reports

Generate compliance reports from the audit log:
Sample report output:

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:

Guards

Guard decisions that generate audit events.

Security Modes

Mode decisions are audit-logged.