This page describes Cloud Workstations container output logs generated by individual workstations.
Overview
Standard container output logs and standard container error logs generated by the workstation container are sent to Cloud Logging for monitoring and debugging.
To view container output logs for a particular workstation:
Ensure that your configuration specifies a service account that has the Logs Writer role (
roles/logging.logWriter
) and Monitoring Metric Writer (roles/monitoring.metricWriter
) on your project.Start a workstation.
To view container logs for this workstation, navigate to the Logs Explorer and update the query to the following:
resource.type="gce_instance" labels.workstation_id=WORKSTATION_ID
Replace WORKSTATION_ID with the name of the workstation that you want to look up.
You can also filter by
labels.workstation_cluster_id
orlabels.workstation_config_id
as needed.
What's next
Learn more about the Cloud Workstations logging API
Understand and manage Google Cloud platform logs
Learn more about Cloud Workstations audit logging