Skip to content

Instantly share code, notes, and snippets.

@flrichar
Created June 4, 2022 12:20
Show Gist options
  • Select an option

  • Save flrichar/163c7c2d296e8dfc7a14191ecd790803 to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/163c7c2d296e8dfc7a14191ecd790803 to your computer and use it in GitHub Desktop.
rancher api audit log parse
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