Cluster command history

2,535 views
Skip to first unread message

gmert...@trifacta.com

unread,
Aug 29, 2017, 4:20:28 AM8/29/17
to Kubernetes user discussion and Q&A
Hi!

I was wondering whether kubernetes provides a way to track the user commands history at cluster level. For example, when I run "kubectl delete deployment some-random-deployment" I would like to log a line similar with bash command history which says:

- who run the command
- which command was run
- time when the command was run

Does kubernetes provide such capabilities?

Thank you!

Best,
George

Matthias Rampke

unread,
Aug 29, 2017, 4:42:01 AM8/29/17
to Kubernetes user discussion and Q&A
Hey,

I think audit logs[0] are what you need, potentially with some filtering on top.

/MR



--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

gmert...@trifacta.com

unread,
Sep 20, 2017, 11:06:22 AM9/20/17
to Kubernetes user discussion and Q&A
It seems like it.

The documentation seems pretty straightforward: https://kubernetes.io/docs/tasks/debug-application-cluster/audit/

Thank you!

Best,
George

Reply all
Reply to author
Forward
0 new messages