Types of Logs
Curator maintains several different log types, each serving a specific purpose:| Log Type | Purpose | Access |
|---|---|---|
| Usage Log | Audit trail of who made what changes | Curator Backend |
| Event Log | Records system events, errors, and warnings | Curator Backend |
| Access Log | Logs backend administrator access | Curator Backend |
| Alert Log | Aggregates recurring system alerts | Curator Backend |
| System Log | Detailed application logs for debugging | Server File System |
| PHP Error Log | PHP runtime errors and warnings | Server File System |
| Apache Error Log | Web server errors and access information | Server File System |
Backend Logs vs Server Logs
Backend Logs are stored in the Curator database and accessible through the Curator backend interface. These logs are designed for day-to-day monitoring and auditing by administrators who may not have direct server access. Server Logs are stored as files on the server and require direct server or file system access. These logs are typically used for deeper troubleshooting, especially when database connectivity issues prevent backend access or when investigating web server configuration problems.API Access
Curator provides API endpoints for programmatic access to log data. All API endpoints require a valid API key. For general information about using the Curator API, see the Curator API Overview.List Event Log
Returns event log entries with pagination support.limit(optional) - Maximum number of results to return (default: 1000)offset(optional) - Number of results to skip for pagination (default: 0)
List Usage Log
Returns usage log entries with filtering options.limit(optional) - Maximum number of results to return (default: 1000)offset(optional) - Number of results to skip for pagination (default: 0)username(optional) - Filter results by usernameis_frontend(optional) - Filter by frontend (true), backend (false), or both (omit parameter)
List Alert Log
Returns alert log entries with filtering options.limit(optional) - Maximum number of results to return (default: 1000)offset(optional) - Number of results to skip for pagination (default: 0)status(optional) - Filter by status:active,resolved,suppressedlevel(optional) - Filter by level:error,warning,info
Download System Log
Downloads the current system log file.storage/logs/system.log file as a downloadable attachment.
Best Practices
- Set appropriate retention periods - Balance the need for historical data against database storage requirements. For most installations, 1-3 months of event log retention is sufficient.
- Monitor the Alert Log - Regularly review the Status page to catch recurring issues early.
- Archive logs before purging - If compliance requirements mandate long-term log retention, use the API endpoints to export log data before automatic purging occurs.
- Review Access Logs periodically - Regular review of administrator access helps identify unauthorized access attempts.
- Check multiple log sources - When troubleshooting issues, check both backend logs and server logs for a complete picture. The System Log may contain entries not present in the Event Log.