Overview
C.A.R. 911 maintains a complete audit log of all system changes, allowing you to track who made what changes and when. The audit system automatically records modifications to critical resources including users, fleets, equipment, cameras, and organizational units.Viewing Audit Logs
You access the audit log through the audit controller, which provides comprehensive filtering capabilities.Required Permission
You need the
ver-auditoria permission to view audit logs.Available Filters
The audit log interface provides multiple filter options to help you find specific changes:Filter by Text
Search for specific actions or changes by entering text that matches the action description or change details.
Filter by Table
View changes to a specific resource type by selecting from the table dropdown. The system tracks changes to:
- Users (usuarios)
- Fleets (flota_general)
- Equipment (equipos)
- Cameras (camaras)
- Organizational units (destino)
- And more
Understanding Audit Records
Each audit record contains the following information:Audit Record Fields
Audit Record Fields
The
auditoria table stores:user_id- Who made the changenombre_tabla- Which table was modifiedaccion- What action was performed (create, update, delete)cambios- Detailed JSON of what changedcreated_at- When the change occurred- Resource-specific foreign keys (e.g.,
usuario_modificado_id,flota_modificado_id)
Audit Log Relationships
The audit model provides relationships to view related records:Pagination and Sorting
Route Configuration
You access audit logs through the resource route:/auditoria