Created
June 4, 2022 12:20
-
-
Save flrichar/163c7c2d296e8dfc7a14191ecd790803 to your computer and use it in GitHub Desktop.
rancher api audit log parse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl logs -n cattle-system rancher-b95f969dc-jl7bp -c rancher-audit-log | jq -R 'fromjson? | .requestURI' | sort | uniq -c | sort -nr | less | |
| # send rancher-api-audit-log, ignore non-json errors, parse requestURI, uniq-sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment