Audit Logs Module Documentation
Table of Contents
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- Log Fields Reference
- Common Scenarios & Examples
- Limitations & Important Notes
- Troubleshooting Tips
- Glossary
---
1. Module Overview (Technical)
What Are Audit Logs?
Audit Logs is a security and compliance module that records all administrative actions performed in the system. It tracks who did what, when, from where, and provides a complete audit trail for regulatory compliance and security monitoring.
Architecture
Key Tables
| Table | Purpose |
|---|---|
public.audit_logs | Audit trail records |
Key Files
| File | Description | |
|---|---|---|
modules/auditLogs/ | Frontend module | |
modules/auditLogs/api/auditLogApi.ts | API calls | |
modules/auditLogs/types/auditLog.types.ts | Type definitions |
2. Module Overview (Commercial/Business)
Business Value
Audit Logs provides complete accountability:
| Without Audit Logs | With Audit Logs | |
|---|---|---|
| Unknown who changed | Full accountability | |
| No change history | Complete trail | |
| Compliance gaps | Regulatory compliance | |
| Security blind spots | Activity visibility |
Use Cases
- Security Monitoring
- Identify suspicious actions
- Compliance
- HIPAA audit trail
- PCI DSS logging
- Troubleshooting
- Configuration change history
- Investigation
- Forensic analysis
Feature Highlights
| Feature | Benefit | |
|---|---|---|
| Action Tracking | What was done | |
| User Identification | Who did it | |
| IP Logging | Where from | |
| Timestamp | When it happened | |
| Metadata | What changed | |
| Search/Filter | Find specific events |
3. Module Overview (End User/Administrator)
What Can You Do?
- View all system activity
- Filter by date range
- Filter by action type
- Filter by resource
- Filter by user
- Search across logs
- Export for compliance
Audit Logs Interface
Quick Tips
TIP
Quick Ranges: Use Today, 7 Days, 15 Days, 30 Days for fast filtering.TIP
Multi-Action Filter: Select multiple action types to filter.NOTE
Metadata: Click row to view full metadata with old/new values.---
4. Log Fields Reference
Display Columns
| Column | Description | |
|---|---|---|
| ID | Unique log entry ID | |
| Timestamp | When action occurred | |
| Action | Type of action | |
| Resource | What was affected | |
| Resource ID | Specific item ID | |
| User | Who performed action | |
| IP Address | Source IP | |
| User Agent | Browser/client info | |
| Metadata | Additional details |
Common Actions
| Action | Description | |
|---|---|---|
| CREATE | New record created | |
| UPDATE | Record modified | |
| DELETE | Record removed | |
| LOGIN | User logged in | |
| LOGOUT | User logged out | |
| EXPORT | Data exported | |
| IMPORT | Data imported |
Common Resources
| Resource | Description | |
|---|---|---|
| extension | SIP extension | |
| user | System user | |
| gateway | SIP gateway | |
| queue | Call queue | |
| ivr | IVR menu | |
| route | Inbound/outbound route | |
| domain | Tenant domain | |
| session | Login session |
5. Common Scenarios & Examples
Scenario 1: Who Changed Extension 1001?
- Filter Resource by "extension"
- Search for resource ID or number
- View action history
- Check metadata for changes
Scenario 2: Security Investigation
- Filter by specific user
- Set date range for incident window
- Review all actions
- Export for report
Scenario 3: Login Audit
- Filter Action by "LOGIN"
- Review login times and IPs
- Identify unusual patterns
- Check for failed logins
Scenario 4: Compliance Report
- Set date range for reporting period
- Apply relevant filters
- Export full log
- Submit for audit
---
6. Limitations & Important Notes
Technical Notes
NOTE
Automatic Logging: All admin actions are logged automatically.NOTE
Read-Only: Audit logs cannot be modified or deleted.WARNING
Storage: Long retention periods increase storage needs.Retention
| Setting | Description | |
|---|---|---|
| Default Retention | Configured per system | |
| Compliance Needs | May require 1-7 years |
Best Practices
- Regular Review: Check logs weekly for anomalies
- Export Archives: Export and archive regularly
- Monitor Logins: Watch for unusual login patterns
- Track Deletions: Review all DELETE actions
- IP Awareness: Know your admin IPs
---
7. Troubleshooting Tips
Common Issues
| Symptom | Possible Cause | Solution | |
|---|---|---|---|
| No logs | Too restrictive filter | Clear filters | |
| Missing action | Not logged | Check if action type is logged | |
| Slow loading | Large date range | Reduce date range | |
| User not found | User deleted | Search by user ID | |
| No metadata | Not captured | Some actions have limited metadata |
Diagnostic SQL
Recent audit entries: Actions by user:---
8. Glossary
| Term | Definition | |
|---|---|---|
| Audit Log | Record of system activity | |
| Action | Type of operation performed | |
| Resource | Type of object affected | |
| Metadata | Additional change details | |
| User Agent | Browser/client identification | |
| Audit Trail | Complete history of actions |
Lua Script Status ℹ️
No Lua Handler Required
| Component | Status |
|---|---|
| Audit Logs | ℹ️ Backend-logged - recorded by API middleware |
---
Documentation last updated: January 2026