Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion audit/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
// entry represents an audit entry.
// It could be an entry for a request or response.
type entry struct {
Time string `json:"time,omitempty"`
Auth *auth `json:"auth,omitempty"`
Error string `json:"error,omitempty"`
Forwarded bool `json:"forwarded,omitempty"`
ForwardedFrom string `json:"forwarded_from,omitempty"` // Populated in Enterprise when a request is forwarded
Request *request `json:"request,omitempty"`
Response *response `json:"response,omitempty"`
Time string `json:"time,omitempty"`
Type string `json:"type,omitempty"`
}

Expand Down
3 changes: 3 additions & 0 deletions changelog/31437.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:change
audit: Log entry fields are reorganized so time is the first field, which is useful for log parsers and forwarders for accurate timestamps of events.
```