How do I find who created a GCE VM instance in Google Cloud? -


background

in our current google cloud project seems it's common people create vm, start it, of stuff , leave there without turning off or deleting vm.

i'm trying write automated script pulls list of vm instances every day , send e-mail vm owners , see if forgot turn off vms.

question

so there easy way find out created gce vm instance using google cloud api?

you can view information in stackdriver -> logging -> logs. log json file, actor field looking for. can export logs analysis.

see https://cloud.google.com/logging/docs/


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -