Overview
The Activity Log system provides a comprehensive audit trail of all significant actions in the EMS platform. Administrators can view, search, and export activity logs for compliance, security, and operational monitoring.Audit Trail
All actions are immutably logged with timestamp, user, action type, entity, and outcome.
Get Activity Logs
Retrieve paginated activity logs with sorting options.Endpoint
Authorization
Required Role:
ADMINQuery Parameters
Page number (zero-based)
Number of records per page
Field to sort byCommon values:
timestamp, userEmail, action, entityTypeSort direction:
asc or descRequest Example
Response
200 OK
Response Fields
Array of audit log entries
Unique log entry identifier
ID of user who performed the action
Email of user who performed the action
Type of action performed (see Action Types below)
Type of entity affected (Proposal, Event, Registration, etc.)
ID of the affected entity
Result of the action:
SUCCESS or FAILUREIP address of the user
Browser/client user agent string
When the action occurred (ISO 8601 format)
Export Activity Logs
Export all activity logs as a JSON file for archival or analysis.Endpoint
Authorization
Required Role:
ADMINRequest Example
cURL
Response
Content-Type:application/json
Content-Disposition: attachment; filename=ems_audit_export.json
The export includes ALL log entries, sorted by timestamp (most recent first). Use this for compliance archival or offline analysis.
Action Types
The system logs the following action types:Proposal Actions
| Action | Description |
|---|---|
PROPOSAL_SUBMITTED | Organizer submitted a new proposal |
PROPOSAL_APPROVED | Admin approved a proposal |
PROPOSAL_REJECTED | Admin rejected a proposal |
PROPOSAL_RESUBMITTED | Organizer resubmitted after rejection |
Event Actions
| Action | Description |
|---|---|
EVENT_CREATED | Event created from approved proposal |
EVENT_UPDATED | Event details modified |
EVENT_CANCELLED | Event cancelled |
Registration Actions
| Action | Description |
|---|---|
REGISTRATION_CREATED | Student registered for event |
REGISTRATION_CANCELLED | Student cancelled registration |
Report Actions
| Action | Description |
|---|---|
REPORT_SUBMITTED | Organizer submitted post-event report |
REPORT_APPROVED | Admin approved report |
REPORT_REJECTED | Admin rejected report |
CERT_EXPORT_DOWNLOADED | Organizer downloaded certificate template |
User Actions
| Action | Description |
|---|---|
USER_REGISTERED | New user account created |
USER_STATUS_CHANGED | Account status modified by admin |
USER_ROLE_CHANGED | User role modified by admin |
Update Request Actions
| Action | Description |
|---|---|
UPDATE_REQUEST_SUBMITTED | Organizer submitted event modification request |
UPDATE_REQUEST_APPROVED | Admin approved modification request |
UPDATE_REQUEST_REJECTED | Admin rejected modification request |
Use Cases
Security Monitoring
Security Monitoring
Track suspicious login patterns, unauthorized access attempts, or unusual activity:
Compliance Auditing
Compliance Auditing
Generate audit trails for regulatory compliance:
User Activity Tracking
User Activity Tracking
Monitor specific user actions for investigation:
System Health Monitoring
System Health Monitoring
Identify system errors or performance issues:
Event Timeline Reconstruction
Event Timeline Reconstruction
Trace the complete lifecycle of a proposal/event:
Pagination Best Practices
Sorting Options
You can sort by any of these fields:timestamp- When the action occurred (default)userEmail- Who performed the actionaction- Type of actionentityType- What was affectedoutcome- Success or failureipAddress- Source IP address
Security Considerations
IP Tracking: IP addresses are logged for security monitoring and incident investigation.
User Agent Logging: Browser information helps identify automated vs. manual actions.
Integration Examples
JavaScript - Recent Activity Dashboard
Python - Export and Analyze
Related Documentation
Admin Guide
Administrator workflows and best practices
Security Architecture
System security design
User Management
User and account management endpoints
Events API
Event management endpoints