You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/admin/audit-logs.md
+53
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,59 @@ The supported filters are:
43
43
-`date_to` - The inclusive end date with format `YYYY-MM-DD`.
44
44
-`build_reason` - To be used with `resource_type:workspace_build`, the [initiator](https://pkg.go.dev/github.com/coder/coder/codersdk#BuildReason) behind the build start or stop.
45
45
46
+
## Capturing/Exporting Audit Logs
47
+
48
+
In addition to the user interface, there are multiple ways to consume or query audit trails.
49
+
50
+
## REST API
51
+
52
+
Audit logs can be accessed through our REST API. You can find detailed information about this in our [endpoint documentation](../api/audit#get-audit-logs).
53
+
54
+
## Service Logs
55
+
56
+
Audit trails are also dispatched as service logs and can be captured and categorized using any log management tool such as [Splunk](https://splunk.com).
57
+
58
+
Example of a [JSON formatted](../cli/server#--log-json) audit log entry:
0 commit comments