Audit Logging and Compliance
Audit Log Events
The platform generates audit log entries for all security-relevant events including authentication attempts (success and failure), permission changes, data access, configuration modifications, and API key lifecycle events. Each log entry includes a timestamp, actor identity, action type, resource identifier, source IP address, and the result of the action (success or failure).
Audit logs are immutable: once written, they cannot be modified or deleted by any user, including organization administrators. Logs are stored in append-only storage with hash chaining, where each entry includes a SHA-256 hash of the previous entry. This tamper-evident chain allows you to verify that no entries have been inserted, modified, or removed.
Log Retention and Export
Default log retention is 90 days for all plans and 1 year for Enterprise plans. Logs beyond the retention period are archived to cold storage and available on request for up to 7 years. Configure custom retention periods via PUT /org/settings/audit-log with {"retention_days": 365}.
Export audit logs in JSON or CSV format via the API: GET /audit-log/export?start=2025-01-01&end=2025-01-31&format=json. For continuous export, configure a log streaming destination (S3 bucket, Datadog, Splunk, or any HTTPS endpoint) via POST /org/settings/audit-log/stream with your destination configuration. Streamed logs are delivered in near-real-time with at-least-once delivery guarantees.
SOC 2 and GDPR Compliance
For SOC 2 Type II compliance, enable comprehensive audit logging across all accounts and configure log retention of at least 1 year. The compliance dashboard at /org/compliance/soc2 provides a pre-built view of the Common Criteria controls (CC6.1 through CC6.8, CC7.1 through CC7.4) with evidence pulled from your audit logs. Export this dashboard as a PDF for your auditor.
GDPR compliance requires audit logging of all data subject access requests (DSARs), consent changes, and data processing activities. Enable GDPR mode via PUT /org/settings/compliance with {"gdpr_mode": true} to automatically log these events and generate the Article 30 Records of Processing Activities from your audit trail.
Peer-reviewed and accepted for publication. Supplementary data available via linked endpoints.