Audit Trail - Logging & Compliance

12 min read

Audit Trail Documentation

Version 1.4 | Last Updated: January 2025

ClientFlow maintains comprehensive audit logs of all user actions, data access, and system events for compliance, security, and troubleshooting.

What Gets Logged

Event CategoryExamplesRetention
AuthenticationLogins, logouts, password changes, 2FA2 years
Data AccessView client, edit payment, delete note2 years
Data ModificationsCreate customer, update appointment2 years
AdministrativeChange settings, add team member2 years
Payment EventsCard stored, payment processed7 years
Security EventsFailed logins, suspicious activity2 years

Log Immutability

Audit logs are append-only - they cannot be edited or deleted:

  • Database Protection: PostgreSQL policies prevent UPDATE/DELETE
  • Tamper Detection: SHA-256 checksums for critical logs
  • Weekly Integrity Check: Automated verification of log integrity

Authentication Events

  • auth.login.success - Successful login
  • auth.login.failure - Failed login attempt
  • auth.password_changed - Password change
  • auth.2fa_enabled - Two-factor authentication enabled
  • auth.logout - User logout

Data Access & Modification Events

  • customer.created / customer.updated / customer.deleted
  • payment.created / payment.updated / payment.deleted
  • note.created / note.viewed
  • file.uploaded / file.downloaded / file.deleted
  • data.exported - Data export requests
Privacy Note: We log WHO accessed WHAT and WHEN, but NOT the actual data content (e.g., "user viewed client 123" not the client's name).

Security Events

EventSeverityAuto-Action
Brute force detected (5+ failures)WarningAccount locked 30 min
API rate limit exceededWarningHTTP 429 throttle
Session hijacking detectedCriticalSession invalidated
Unauthorized access attemptCriticalAlert security team

Accessing Audit Logs

PRO/Team Tier

  1. Navigate to Settings → Security → Audit Logs
  2. Filter by date range, action type, severity, or IP address
  3. Export logs as CSV, JSON, or PDF report

Free/Starter Tier

Last 30 days visible in dashboard (cannot download). Upgrade for full access.

Compliance Mappings

  • GDPR Article 30: Records of processing activities
  • HIPAA §164.312(b): Audit controls for ePHI access
  • SOC 2 TSC CC7.2: System monitoring for security events
  • PCI DSS Req 10: Track access to cardholder data

Retention Periods

Event CategoryRetentionReason
Payment/Billing7 yearsTax/financial records
Authentication2 yearsGDPR, HIPAA compliance
Data Access2 yearsGDPR Article 30
Security Events2 yearsIncident investigation
System/Errors30 daysTroubleshooting

Contact

Audit Log Questions: support@clientflow.center

Compliance Export Requests: compliance@clientflow.center

Data Protection Officer: dpo@clientflow.center


Read time: ~12 minutes | Audience: Compliance Officers, IT Security

Was this helpful?