Audit Logs
Comprehensive system audit trails, activity tracking, and before/after data changes
Comprehensive Audit System
The system maintains detailed audit logs for every action performed by users, including page views, data changes, and system events. This provides complete traceability for compliance, security monitoring, and troubleshooting.
What is Audited?
The audit system tracks activities across 13 categories:
Core CRUD
- Create, Read, Update, Delete operations
- Login/Logout events
- Submission, Approval, Rejection
- Data exports
Documents & Signatures
- Digital signature captures
- Document uploads/downloads
- Notification sending
- Password changes
Parent Portal
- Parent verification and login
- Dashboard and form views
- Child details, medical info updates
- Legal ID uploads and signature completion
Errors
- Server and client errors
- Validation failures
- 404 Not Found, Unauthorized
- JavaScript errors, API errors
Report Builder
- Report creation and modifications
- Report runs (started, completed, failed)
- Schedule management
- Artefact downloads
Page Views
- All page navigation
- Dashboard, listing, details views
- Search, filter, sort actions
- Form views and pagination
Staff Portal
- Child and parent record management
- Submission and period management
- User and document management
- Settings and help access
Manager Actions
- Approvals and rejections
- Reviews and overrides
- Exports and bulk actions
- Assisted mode enabling
Admin Actions
- User management
- System settings changes
- Data archival and imports
- Submission reversions
Assisted Submission
- Mode started/enabled events
- All form step views and updates
- Agreement confirmation
- Signature completion
API
- API authentication attempts
- CRUD operations via API
- Rate limiting events
- Export operations
Session & Security
- Session start/end/timeout
- Password reset requests
- Account lock/unlock
- Email/phone verification
Data Access
- Data exports and imports
- Bulk updates and deletes
- Sensitive data access (PII, NI numbers)
- Medical data viewing
Viewing Audit Logs
- Go to Admin > Audit Log
- Use the filters to narrow results:
- Date Range: Start and end dates
- Action Category: Filter by category (e.g., Parent Portal, Staff Portal)
- Action: Specific action type (grouped by category)
- Entity Type: The type of record affected
- User: Filter by specific staff member
- Search: Search IP addresses, user agents, or data values
- Click 'View Changes' on any entry to see before/after data
- Use 'Export to Excel' to download filtered results
Before/After Data
For data modification actions (Create, Update, Delete), the audit log captures:
- Before (Old Values): The state of the record before the change
- After (New Values): The state of the record after the change
Click 'View Changes' on any audit entry to expand and see the full before/after JSON data with syntax highlighting.
User Identification
The audit system identifies users in several ways:
- Staff Users: Identified by their login account (name and email displayed)
- Parents: Identified by parent session (shows 'Parent: [Name]')
- Anonymous: Unauthenticated access attempts are tracked with IP address
- System: Automated actions (e.g., scheduled jobs)
Additional Captured Information
Each audit entry also records:
- IP Address: Client IP (including forwarded addresses behind proxies)
- User Agent: Browser/device information
- Timestamp: Precise date and time (UTC)
- Response Time: How long the request took
- Entity ID: The specific record affected
- Reference Number: For submission-related actions
Submission History
To view the complete history of a specific submission:
- Open the submission details page
- Click 'View Audit History' button
- See all actions related to that submission in chronological order
Audit Retention
Audit logs are retained according to data protection policies (default: 36 months). Old records may be archived or deleted as configured in system settings under Admin > Archival Settings.
GDPR Compliance: The audit system helps demonstrate compliance with data protection regulations by maintaining a complete record of who accessed what data, when, and what changes were made. This is essential for Subject Access Requests and regulatory audits.
Security Note: Audit logs themselves cannot be modified or deleted by regular users. Only system administrators can configure retention policies, and all archival actions are themselves audited.