Skip to content
Merged
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
fmt
  • Loading branch information
bpmct committed Jun 13, 2023
commit c94f5a3792c97e9edcf530e2f7e4ec4ed57e0ab6
60 changes: 28 additions & 32 deletions docs/admin/audit-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,38 +59,34 @@ Example of a [JSON formatted](../cli/server#--log-json) audit log entry:

```json
{
"ts":"2023-06-13T03:45:37.294730279Z",
"level":"INFO",
"msg":"audit_log",
"caller":"/home/runner/work/coder/coder/enterprise/audit/backends/slog.go:36",
"func":"github.com/coder/coder/enterprise/audit/backends.slogBackend.Export",
"logger_names":[
"coderd"
],
"fields":{
"ID":"033a9ffa-b54d-4c10-8ec3-2aaf9e6d741a",
"Time":"2023-06-13T03:45:37.288506Z",
"UserID":"6c405053-27e3-484a-9ad7-bcb64e7bfde6",
"OrganizationID":"00000000-0000-0000-0000-000000000000",
"Ip":"{IPNet:{IP:\u003cnil\u003e Mask:\u003cnil\u003e} Valid:false}",
"UserAgent":"{String: Valid:false}",
"ResourceType":"workspace_build",
"ResourceID":"ca5647e0-ef50-4202-a246-717e04447380",
"ResourceTarget":"",
"Action":"start",
"Diff":{

},
"StatusCode":200,
"AdditionalFields":{
"workspace_name":"linux-container",
"build_number":"9",
"build_reason":"initiator",
"workspace_owner":""
},
"RequestID":"bb791ac3-f6ee-4da8-8ec2-f54e87013e93",
"ResourceIcon":""
}
"ts": "2023-06-13T03:45:37.294730279Z",
"level": "INFO",
"msg": "audit_log",
"caller": "/home/runner/work/coder/coder/enterprise/audit/backends/slog.go:36",
"func": "github.com/coder/coder/enterprise/audit/backends.slogBackend.Export",
"logger_names": ["coderd"],
"fields": {
"ID": "033a9ffa-b54d-4c10-8ec3-2aaf9e6d741a",
"Time": "2023-06-13T03:45:37.288506Z",
"UserID": "6c405053-27e3-484a-9ad7-bcb64e7bfde6",
"OrganizationID": "00000000-0000-0000-0000-000000000000",
"Ip": "{IPNet:{IP:\u003cnil\u003e Mask:\u003cnil\u003e} Valid:false}",
"UserAgent": "{String: Valid:false}",
"ResourceType": "workspace_build",
"ResourceID": "ca5647e0-ef50-4202-a246-717e04447380",
"ResourceTarget": "",
"Action": "start",
"Diff": {},
"StatusCode": 200,
"AdditionalFields": {
"workspace_name": "linux-container",
"build_number": "9",
"build_reason": "initiator",
"workspace_owner": ""
},
"RequestID": "bb791ac3-f6ee-4da8-8ec2-f54e87013e93",
"ResourceIcon": ""
}
}
```

Expand Down