Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite werden Containerausgaben-Logs von Cloud Workstations beschrieben, die von einzelnen Workstations generiert werden.
Übersicht
Standardcontainerausgabe- und Standardcontainerfehler-Logs, die vom Workstation-Container generiert werden, werden zum Überwachen und Entwickeln an Cloud Logging gesendet.
So rufen Sie Containerausgaben-Logs für eine bestimmte Workstation auf:
Achten Sie darauf, dass in Ihrer Konfiguration ein Dienstkonto mit den Rollen Log-Autor (roles/logging.logWriter) und Monitoring-Messwert-Autor (roles/monitoring.metricWriter) für Ihr Projekt angegeben ist.
Starten Sie eine Workstation.
Wenn Sie die Containerprotokolle für diese Workstation aufrufen möchten, rufen Sie den Log-Explorer auf und aktualisieren Sie die Abfrage so:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-11 (UTC)."],[],[],null,["# Cloud Workstations container output logging\n\nThis page describes Cloud Workstations container output logs generated by\nindividual workstations.\n\nOverview\n--------\n\nStandard container output logs and standard container error logs generated by\nthe workstation container are sent to\n[Cloud Logging](/logging/docs/overview)\nfor monitoring and debugging.\n\nTo view container output logs for a particular workstation:\n\n1. Ensure that your configuration specifies a service account that has the\n [Logs Writer](/logging/docs/access-control#logging.logWriter) role\n (`roles/logging.logWriter`) and [Monitoring Metric\n Writer](/monitoring/access-control#predefined_roles)\n (`roles/monitoring.metricWriter`) on your project.\n\n | **Caution:** If you do not specify a service account on your configuration, the workstation uses a default service account. However, this default service account *cannot* be used for collecting container output logs.\n2. Start a workstation.\n\n3. To view container logs for this workstation, navigate to the\n Logs Explorer and update the query to the following:\n\n resource.type=\"gce_instance\" labels.workstation_id=\u003cvar translate=\"no\"\u003eWORKSTATION_ID\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003eWORKSTATION_ID\u003c/var\u003e with the name of the workstation\n that you want to look up.\n\n You can also filter by `labels.workstation_cluster_id` or\n `labels.workstation_config_id` as needed.\n\n| **Note:** Errors in the container output logs won't necessarily be logged at severity `ERROR`. Don't add a severity filter while looking for errors in the container output logs.\n| **Note:** If your workstation is failing to start during VM creation, there may be an issue with your VPC or project configuration, and container output logs may help identify this. However, in this case the VM won't be assigned to a workstation, so you will need to instead filter by cluster and config ID.\n\nWhat's next\n-----------\n\n- Learn more about the [Cloud Workstations logging API](/logging/docs/api/platform-logs#workstations)\n\n- Understand and manage [Google Cloud platform logs](/logging/docs/api/platform-logs#managing-logs)\n\n- Learn more about [Cloud Workstations audit logging](/workstations/docs/audit-logging)"]]