How do I enable audit logging for Google Container Engine?

11/1/2017

Running a GKE cluster with 1.8.1 - when I look at /logs/kube-apiserver-audit.log, it's completely empty. I've taken actions like creating deployments and deleting pods that have been visible in audit logs for clusters I've provisioned outside of GKE.

Is there a better way to view or access these kinds of events with GKE?

-- Rob Scott
audit-logging
google-kubernetes-engine
kubernetes

1 Answer

11/4/2017

That would be because Container Engine 1.8 release does not enable the audit logging feature yet. From Release Notes:

KNOWN ISSUE: Audit Logging, a beta feature in Kubernetes 1.8, is currently not enabled on Container Engine.

It will probably be enabled at some point in the future, I’d keep an eye on the Release Notes.

-- AhmetB - Google
Source: StackOverflow