feat: Add audit logs filtering to the UI (#4120)

This commit is contained in:
Bruno Quaresma
2022-09-19 21:28:23 -03:00
committed by GitHub
parent 7fe7ffea6d
commit 1186e643ec
8 changed files with 149 additions and 26 deletions
+12
View File
@@ -13,6 +13,18 @@ This feature tracks **create, update and delete** events for the following resou
- APIKey
- User
## 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:delete` to find deleted workspaces
- `resource_type:template action:create` to 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](https://pkg.go.dev/github.com/coder/coder@main/codersdk#ResourceType) all the resource types that are supported.
- `action`- The action applied to a resource. You can [find here](https://pkg.go.dev/github.com/coder/coder@main/codersdk#AuditAction) all the actions that are supported.
## Enabling this feature
This feature is autoenabled for all enterprise deployments. An Admin can contact us to purchase a license [here](https://coder.com/contact?note=I%20want%20to%20upgrade%20my%20license).