Skip to content

Commit

Permalink
Reduce the size of the audit log summary
Browse files Browse the repository at this point in the history
The .objectRef.name is already printed with the .requestURI.

Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe committed Nov 2, 2023
1 parent 5df80d4 commit 8ef16c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/audit-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# $ jq -M . kube-apiserver-audit.log | less
#
# Dump a quick-to-digest summary of the log events:
# $ jq -M '[.auditID,.verb,.requestURI,.user.username,.objectRef.name,.responseStatus.code,.stageTimestamp]' kube-apiserver-audit.log | less
# $ jq -M '[.auditID,.verb,.requestURI,.user.username,.responseStatus.code,.stageTimestamp]' kube-apiserver-audit.log | less
#
# Extract a specific event record from the log:
# $ jq -M '. | select(.auditID=="d1053ee5-0734-4b40-815f-3f6831f82bac")' kube-apiserver-audit.log | less
Expand Down

0 comments on commit 8ef16c4

Please sign in to comment.