Audit Log Viewer
View and analyze audit logs in the EZ-Console admin interface.
Overview
The Audit Log Viewer provides a comprehensive view of all user actions and system events. It helps with compliance, security monitoring, and troubleshooting.
Accessing Audit Logs
Navigate to: System → Audit Logs
Audit Log Information
Log Fields
Each audit log entry contains:
- Timestamp: When the action occurred
- User: User who performed the action
- Action: Type of action (create, update, delete, view)
- Resource Type: Type of resource (user, role, product, etc.)
- Resource ID: ID of the affected resource
- IP Address: User's IP address
- User Agent: Browser/client information
- Details: Additional action details
- Result: Success or failure
Viewing Audit Logs
Log List
The audit log list displays:
- Recent logs at the top
- Pagination for large datasets
- Sortable columns
- Filterable entries
Filtering Logs
Filter logs by:
- User: Filter by specific user
- Action: Filter by action type
- Create
- Update
- Delete
- View
- Login
- Logout
- Resource Type: Filter by resource type
- Date Range: Filter by time period
- IP Address: Filter by IP address
- Status: Success or failure
Searching Logs
Use the search bar to search for:
- Username
- Resource ID
- Action details
- IP address
Log Details
View Log Details
Click on a log entry to view:
- Complete action details
- Request information
- Response information
- Related logs
Log Context
View related logs:
- All actions by the same user
- All actions on the same resource
- Actions in the same time period
Exporting Logs
Export Options
-
CSV Export
- Click Export button
- Select CSV format
- Choose date range
- Download file
-
Excel Export
- Click Export button
- Select Excel format
- Choose date range
- Download file
Export Filters
Apply filters before exporting:
- Filter by user, action, or resource
- Select date range
- Export filtered results
Audit Log Retention
Retention Settings
Configure log retention:
- Retention Period: How long to keep logs (default: 90 days)
- Auto-cleanup: Automatically delete old logs
Settings Location
Navigate to: System → Settings → Audit Logs
Use Cases
Compliance
- Track all user actions
- Generate compliance reports
- Audit trail for regulations
Security Monitoring
- Monitor suspicious activity
- Track failed login attempts
- Identify unauthorized access
Troubleshooting
- Review user actions
- Trace system changes
- Debug issues
User Activity Analysis
- Analyze user behavior
- Identify usage patterns
- Optimize workflows
Best Practices
1. Regular Review
- Review audit logs weekly
- Check for suspicious activity
- Monitor failed actions
2. Export Important Logs
- Export logs before cleanup
- Archive important events
- Keep compliance records
3. Set Appropriate Retention
- Balance storage vs. compliance needs
- Comply with regulations
- Consider legal requirements
4. Monitor Key Events
Set up alerts for:
- Failed login attempts
- Permission changes
- Critical data modifications
- Admin actions
Related Topics
- User Management — User activity
- System Settings — Retention and related settings
- Statistics & Reports — Aggregated metrics from audit data
- Audit Logging — How auditing works in the backend (developers)
Need help? Ask in GitHub Discussions.