Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
documentation
  • Loading branch information
Kira-Pilot committed Nov 1, 2022
commit 090490283d433e8454d009b325b95fdaa259db6f
2 changes: 0 additions & 2 deletions coderd/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func (api *API) auditLogs(rw http.ResponseWriter, r *http.Request) {

queryStr := r.URL.Query().Get("q")
filter, errs := auditSearchQuery(queryStr)
fmt.Println("FILTER", filter.DateFrom)
fmt.Println("FILTER", filter.DateTo)

if len(errs) > 0 {
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
Expand Down
2 changes: 2 additions & 0 deletions docs/admin/audit-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The supported filters are:
- `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.
- `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 format `YYYY-MM-DD`.
- `date_to ` - the inclusive end date with format `YYYY-MM-DD`.

## Enabling this feature

Expand Down