Overview
EngageFabric’s Audit Logging system provides comprehensive tracking of all administrative actions, security events, and resource changes. This is essential for:- Compliance: Meet regulatory requirements (SOC 2, GDPR)
- Security Monitoring: Detect suspicious activity in real-time
- Accountability: Track who made changes and when
- Debugging: Investigate issues with full audit trails
Audit logs are only accessible to users with Admin or Owner roles.
Querying Audit Logs
List Audit Logs
Retrieve paginated audit logs with optional filters:Get Single Audit Log
Security Monitoring
Suspicious Activity
Retrieve audit logs flagged as suspicious:- Multiple failed authentication attempts
- Unusual API key usage patterns
- High-volume data exports
- Permission escalation attempts
Recent Security Events
Get security-related events from the past hours:Resource Audit Trail
Track all changes to a specific resource:player- Player recordsquest- Quest definitionsadventure- Adventure/season configurationsleaderboard- Leaderboard settingsrule- Rules engine rulesapi-key- API key management
Event Types
| Event Type | Description |
|---|---|
XP_GRANTED | XP added or removed from player |
CURRENCY_GRANTED | Currency adjusted |
LEVEL_UP | Player level increased |
QUEST_COMPLETED | Quest marked as completed |
BADGE_AWARDED | Badge granted to player |
API_KEY_CREATED | New API key generated |
API_KEY_REVOKED | API key deactivated |
USER_LOGIN | Admin user logged in |
USER_LOGOUT | Admin user logged out |
SETTINGS_CHANGED | Project or tenant settings modified |
RULE_CREATED | New rule added to rules engine |
RULE_UPDATED | Existing rule modified |
Audit Log Retention
| Tier | Retention Period |
|---|---|
| Free | 7 days |
| Starter | 30 days |
| Pro | 90 days |
| Enterprise | Custom (up to unlimited) |
Best Practices
Regular Reviews
Schedule weekly reviews of audit logs to identify unusual patterns or unauthorized access attempts.
Export for Compliance
Export audit logs regularly for long-term storage and compliance requirements.
Set Up Alerts
Configure webhook notifications for critical security events to enable real-time monitoring.
Document Actions
Always provide meaningful reasons when making admin adjustments to maintain a clear audit trail.
