Skip to content

Instantly share code, notes, and snippets.

@rjhowe
Created February 7, 2023 21:44
Show Gist options
  • Save rjhowe/414883db726f1396bf54d1c858f846f8 to your computer and use it in GitHub Desktop.
Save rjhowe/414883db726f1396bf54d1c858f846f8 to your computer and use it in GitHub Desktop.
kubectl-dev_tool example
# kubectl-dev_tool audit --subresource="*" --verb=list -o top --by=user -f audit-2023-02-07T15-02-18.917.log
count: 9201, first: 2023-02-07T09:46:41-05:00, last: 2023-02-07T10:02:18-05:00, duration: 15m37.691882s
4071x system:serviceaccount:sysdig-agent:sysdig-agent
574x system:serviceaccount:openshift-machine-config-operator:machine-config-daemon
543x system:serviceaccount:openshift-dns:dns
456x system:apiserver
360x system:serviceaccount:openshift-cluster-node-tuning-operator:tuned
286x system:serviceaccount:openshift-monitoring:prometheus-k8s
275x system:serviceaccount:openshift-operator-lifecycle-manager:olm-operator-serviceaccount
177x system:serviceaccount:openshift-operators:jaeger-operator
167x system:serviceaccount:openshift-multus:metrics-daemon-sa
123x system:serviceaccount:openshift-apiserver-operator:openshift-apiserver-operator
# kubectl-dev_tool audit --subresource="*" --verb list -o top --by resource --user system:serviceaccount:sysdig-agent:sysdig-agent -f audit-2023-02-07T15-02-18.917.log
count: 4071, first: 2023-02-07T09:46:48-05:00, last: 2023-02-07T10:02:17-05:00, duration: 15m28.827052s
1362x v1/pods
920x apps/v1/replicasets
606x v1/replicationcontrollers
163x v1/nodes
152x v1/namespaces
142x v1/persistentvolumes
138x v1/endpoints
125x v1/resourcequotas
119x apps/v1/daemonsets
110x v1/services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment