Il 15 settembre 2026, tutti gli ambienti Cloud Composer 1 e Cloud Composer 2 versione 2.0.x raggiungeranno la fine del ciclo di vita pianificata e non potrai più utilizzarli. Ti consigliamo di pianificare la migrazione a Cloud Composer 3.
Questa pagina descrive come accedere e visualizzare i log di Apache Airflow per Cloud Composer.
Informazioni sui tipi di log
Cloud Composer ha i seguenti log di Airflow:
Log di streaming. Questi log contengono i log delle attività di Airflow, nonché i log dei componenti Airflow del tuo ambiente, come gli scheduler e i worker di Airflow.
Per scoprire di più su Cloud Logging e Cloud Monitoring per il tuo ambiente Cloud Composer, consulta Monitorare gli ambienti.
Gli ambienti Cloud Composer 3 non salvano i log delle attività Airflow nel bucket dell'ambiente. In alternativa, puoi configurare un sink in Cloud Logging per indirizzare i log a una delle località supportate.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-03 UTC."],[[["\u003cp\u003eThis page details how to access and view Apache Airflow logs for Cloud Composer environments, including streaming logs for Airflow tasks and components.\u003c/p\u003e\n"],["\u003cp\u003eCloud Composer offers streaming logs, which cover Airflow task logs and the logs of Airflow components, as well as audit logs for administrative activities.\u003c/p\u003e\n"],["\u003cp\u003eCloud Composer 3 environments no longer save Airflow task logs to the environment's bucket; instead, a sink in Cloud Logging can be configured to route logs to other supported locations.\u003c/p\u003e\n"],["\u003cp\u003eStreaming logs can be accessed in Cloud Logging by navigating to the \u003cstrong\u003eEnvironments\u003c/strong\u003e page in the Google Cloud console and selecting the \u003cstrong\u003eLogs\u003c/strong\u003e link for a specific environment.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\n**Cloud Composer 3** \\| [Cloud Composer 2](/composer/docs/composer-2/view-logs \"View this page for Cloud Composer 2\") \\| [Cloud Composer 1](/composer/docs/composer-1/view-logs \"View this page for Cloud Composer 1\")\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page describes how to access and view Apache Airflow logs for\nCloud Composer.\n\nAbout log types\n\nCloud Composer has the following Airflow logs:\n\n- [Streaming logs](#streaming). These logs contain Airflow task logs, as well\n as logs of Airflow components of your environment, such as Airflow\n schedulers and workers.\n\n To learn about Cloud Logging and Cloud Monitoring for your\n Cloud Composer environment, see\n [Monitor environments](/composer/docs/composer-3/monitor-environments).\n- Cloud Composer generates [audit logs](/logging/docs/audit), such as Admin\n Activity logs. For more information, see\n [View audit logs](/composer/docs/composer-3/audit-logging).\n\nBefore you begin\n\n- Cloud Composer 3 environments\n **don't save Airflow task logs to the environment's bucket** . As an\n alternative, you can [configure a sink](/logging/docs/export/configure_export_v2) in\n Cloud Logging to route logs to any of the supported locations.\n\n For an example of routing environment logs to a Cloud Storage bucket,\n see\n [Restrict locations for Cloud Composer logs](/composer/docs/composer-3/configure-resource-location-restrictions#restrict-logs-location).\n | **Important:** If you use a sink to route logs, we recommend to **keep environment logs in Cloud Logging** as well as in the configured location. If you use the provided example, skip the last step and don't add an exclusion for Cloud Logging.\n\n\nView streaming logs\n\nTo view streaming logs in Cloud Logging: \n\nConsole\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the list of environments, click the name of your environment.\n The **Environment details** page opens.\n\n3. Go to the **Logs** tab.\n\nView streaming logs in Cloud Logging\n\nTo view streaming logs in Cloud Logging: \n\nConsole\n\n1. In the Google Cloud console, go to the **Environments** page.\n\n [Go to Environments](https://console.cloud.google.com/composer/environments)\n2. In the list of environments, locate your environment.\n\n3. in the **Logs** column, click the **Logs** link.\n\nWhat's next\n\n- [Monitor environments](/composer/docs/composer-3/monitor-environments)\n- [Cloud Composer audit logging](/composer/docs/composer-3/audit-logging)"]]