Audit Logs

Audit Logs

Maintain visibility and accountability with comprehensive activity tracking.

User Activity Tracking

Monitor all actions within the platform:

  • Login Activity: Track successful and failed login attempts

  • Data Access: Record when users view sensitive data

  • Configuration Changes: Log modifications to settings

  • Report Generation: Track report creation and exports

  • API Usage: Monitor programmatic access

Detailed Log Entries

Each audit log entry contains comprehensive details:

  • Timestamp: When the action occurred

  • User: Who performed the action

  • Action Type: What was done

  • Resource: What was affected

  • Before/After: State before and after the change

  • IP Address: Where the request came from

  • User Agent: Browser and device information

Example log entry:

{
  "id": "log-1a2b3c4d",
  "timestamp": "2025-04-25T14:32:18Z",
  "user": {
    "id": "user-5e6f7g8h",
    "email": "[email protected]",
    "name": "Emma Thompson",
    "role": "Editor"
  },
  "action": "EXPERIMENT_STARTED",
  "resource": {
    "type": "experiment",
    "id": "exp-9i0j1k2l",
    "name": "Homepage Hero Test"
  },
  "details": {
    "traffic_allocation": "50%",
    "variants": ["control", "variant-a"],
    "previous_status": "draft",
    "new_status": "running"
  },
  "ip_address": "198.51.100.42",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)..."
}

Last updated