0

Any way to do this in Console? If not Console, is there an API/SDK option?

3

You could try with Logs Explorer.
According to the official documentation, These are the logs retention periods

Log type Default retention period Custom retention
Admin Activity audit logs 400 days Not configurable
System Event audit logs 400 days Not configurable
Access Transparency logs 400 days Not configurable
Data Access audit logs 30 days Configurable
Policy Denied audit logs 30 days Configurable
All other logs 30 days Configurable

This kind of log is in the log type Admin Activity audit logs

Admin Activity audit logs contain log entries for API calls or other administrative actions that modify the configuration or metadata of resources. For example, these logs record when users create VM instances or change Identity and Access Management permissions.

And you can use the following filter on your Log Explorer:

severity=NOTICE
protoPayload.methodName="v1.compute.instances.start"
resource.type="gce_instance"
resource.labels.instance_id="<<INSTANCE_ID>>"

Note: The instance_is a numerical value

And then you could adjust the period on Select time range

enter image description here

Unfortunately it seems that you try to get information older than the default retention period that is 400 days, so maybe you won’t be able to get it.

3
  • thanks for the answer. It is a really good answer. – Kevin Buchs Jan 13 at 23:09
  • Thank you @Kevin Buchs if you find my answer useful, please consider accepting it, thank you! – Jose Luis Delgadillo Jan 13 at 23:13
  • 1
    Accepting your answer of "No, not possible". I do prefer how AWS CloudTrail works. – Kevin Buchs Jan 15 at 14:59

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.