mirror of
https://github.com/coder/coder.git
synced 2026-09-22 13:10:21 +08:00
* sql query * added time_to * added validation error * documentation * attempt to add test * removed whiitespace * fix: ensure date_from and date_to are applied correct audit logs * added more tests * ran make gen * PR feedback Co-authored-by: Dean Sheather <dean@deansheather.com>
1.5 KiB
1.5 KiB
Audit Logs
Audit Logs allows Auditors to monitor user operations in their deployment.
Tracked Events
We track create, update and delete events for the following resources:
- GitSSHKey
- Template
- TemplateVersion
- Workspace
- Workspace start/stop
- User
- Group
Filtering logs
In the Coder UI you can filter your audit logs using the pre-defined filter or by using the Coder's filter query like the examples below:
resource_type:workspace action:deleteto find deleted workspacesresource_type:template action:createto find created templates
The supported filters are:
resource_type- The type of the resource. It can be a workspace, template, user, etc. You can find here all the resource types that are supported.resource_id- The ID of the resource.resource_target- The name of the resource. Can be used instead ofresource_id.action- The action applied to a resource. You can find here all the actions that are supported.username- The username of the user who triggered the action.email- The email of the user who triggered the action.date_from- The inclusive start date with formatYYYY-MM-DD.date_to- the inclusive end date with formatYYYY-MM-DD.
Enabling this feature
This feature is only available with an enterprise license. Learn more