Hi,
I practice GCP cloud and now I am studying the Logs Explorer
section based on events generated from Cloud NAT which I created previously.
What i did?
-
Log in to VM instance #gcloud compute ssh vm-internal --zone us-east4-c --tunnel-through-iap
-
On VM #sudo apt-get update
-
Go to Logs Explorer where I see bunch of logs which tells me nothing. Exemplary output:
INFO 2024-01-03T10:28:22.389769Z [protoPayload.serviceName: oslogin.googleapis.com] [protoPayload.methodName: google.cloud.oslogin.v1.OsLoginService.CheckPolicy] [protoPayload.resourceName: projects/qwiklabs-gcp-00-12a41874ee7d/zones/us-east4-c/instances/vm-internal] [protoPayload.authenticationInfo.principalEmail: student-03-ecd3b5a62c26@qwiklabs.net] audit_log, method: “google.cloud.oslogin.v1.OsLoginService.CheckPolicy”, principal_email: “student-03-ecd3b5a62c26@qwiklabs.net”
As example, how would I retrieve output like?
-
Which command was executed? I mean: apt-get update
-
Or which packages were updated?
-
For which VM instance? Name? IP etc?
Or question to GCP experts, how are you uisng Logs Explorer? How do you filter logs outputs to make it more readable?