mirror of
https://github.com/minio/minio.git
synced 2026-11-20 15:05:20 +00:00
audit: Add request path and host to audit event (#17099)
This commit is contained in:
1 parent
d5aff735be
commit
5c83c9724f
3 files changed
+5
-3
No files matched your search
@@ -47,6 +47,8 @@ func ToEntry(w http.ResponseWriter, r *http.Request, reqClaims map[string]interf
|
||||
entry.RemoteHost = handlers.GetSourceIP(r)
|
||||
entry.UserAgent = r.UserAgent()
|
||||
entry.ReqClaims = reqClaims
|
||||
entry.ReqHost = r.Host
|
||||
entry.ReqPath = r.URL.Path
|
||||
|
||||
q := r.URL.Query()
|
||||
reqQuery := make(map[string]string, len(q))
|
||||
|
||||
Reference in new issue
Block a user