0

I want to create an alert in my project in GCP that lets me know when a new user or service account is added to the project. I understand I need to use Logs Explorer and run a query but I am not sure what query to run.

Thanks!

1 Answer 1

0

You would need to create a log-based metric for the api call for the operations you're interested in. In this case, for example, for service account creation:

https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts

You could create a metric to look for any operations that create, update etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.