I have a go application that leverages Google Cloud Logging API.
The relevant code is the same as this sample from their documentation: https://github.com/GoogleCloudPla
So turns out the log were there but not where I'd expect them.
Using the gcloud CLI I could see those logs got the resource type gce_instance
and therefore appears in the GCE VM Instance
category
To figure this out:
$ gcloud beta logging logs list
projects/<PROJECT>/logs/<LOG_NAME>
...
then
$ gcloud beta logging read projects/<PROJECT>/logs/<LOG_NAME>
---
insertId: ...
jsonPayload:
...
logName: ...
receiveTimestamp: ...
resource:
labels:
instance_id: ...
project_id: ...
zone: ...
type: gce_instance
timestamp: ...
Note type
being gce_instance