How to get see when a service account interactively logged on

Hi,

I want to see when a service account logged on interactively. Which method do I need to check, or which logging source do I need to enable. How can I do that? 

Could you please help?

Thanks in advance.

2 1 108
1 REPLY 1

Hi @Gratitude3013,

Welcome to the Google Cloud Community!

There's no direct way to check if a service account is "online." However, you can use Cloud Audit Logs to track what your service accounts are doing in your GCP project. While you won't get instant alerts for service account activity, these logs do give you a detailed look at past actions of service accounts with GCP services [1].

You may review this documentation for more information - Example logs for service accounts.

[1]. https://stackoverflow.com/questions/52610002/how-can-i-determine-if-service-accounts-are-in-use-usin...