Cloud Workstations container output logging

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:

  1. 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.

  2. Start a workstation.

  3. 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 or labels.workstation_config_id as needed.

What's next