Em 15 de setembro de 2026, todos os ambientes do Cloud Composer 1 e da versão 2.0.x do Cloud Composer 2 vão atingir o fim da vida útil planejado e não poderão mais ser usados. Recomendamos planejar a migração para o Cloud Composer 3.
Esta página descreve como acessar e visualizar os registros do Apache Airflow para o Cloud Composer.
Sobre os tipos de registro
O Cloud Composer inclui estes registros do Airflow:
Fazer streaming de registros. Esses registros contêm registros de tarefas do Airflow, além
de registros de componentes do Airflow do seu ambiente, como programadores e workers.
Para saber mais sobre o Cloud Logging e o Cloud Monitoring no
ambiente do Cloud Composer, consulte
Monitorar ambientes.
Sua Conta do Google precisa ter um papel que possa visualizar objetos em buckets do ambiente. Para mais informações, consulte Controle de acesso.
Os registros armazenados no bucket do ambiente usam a política dele.
O Cloud Composer cria buckets com a política padrão que mantém
os dados para sempre. Para registros armazenados no Cloud Logging,
o Cloud Composer usa _Default e períodos de retenção de registros definidos pelo usuário.
Para evitar a perda de dados, os registros salvos no bucket do ambiente
não são excluídos após a exclusão do ambiente. Exclua manualmente
os registros do bucket do ambiente.
Conferir registros de streaming
Para conferir os registros de streaming no Cloud Logging:
Console
No console Google Cloud , acesse a página Ambientes.
Na lista de ambientes, encontre uma linha com o nome do ambiente
e, na coluna Pasta de DAGs, clique no link DAGs. A página Detalhes do bucket é aberta.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-26 UTC."],[[["\u003cp\u003eThis page outlines how to access and view Apache Airflow logs within Cloud Composer, covering three main types: streaming logs, Airflow task logs in the environment's bucket, and audit logs.\u003c/p\u003e\n"],["\u003cp\u003eStreaming logs, including Airflow task and component logs, can be accessed through Cloud Logging via the Google Cloud console's Environments page, under the logs tab.\u003c/p\u003e\n"],["\u003cp\u003eAirflow task logs stored in the environment's bucket are located in the \u003ccode\u003e/logs\u003c/code\u003e folder and can be accessed via the DAGs link on the Environments page in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eAccessing logs requires a Google Account with the appropriate permissions to view objects in environment buckets, and it's important to know that logs saved in environment's buckets are not automatically deleted when the environment is deleted.\u003c/p\u003e\n"],["\u003cp\u003eCloud Composer uses \u003ccode\u003e_Default\u003c/code\u003e and User-defined logs retention periods for logs stored in Cloud Logging.\u003c/p\u003e\n"]]],[],null,["# View Airflow logs\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\n[Cloud Composer 3](/composer/docs/composer-3/view-logs \"View this page for Cloud Composer 3\") \\| **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---------------\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-2/monitor-environments).\n- [Airflow task logs in the environment's bucket](#view-bucket). These logs are\n associated with single DAG tasks.\n\n If you\n [enable saving logs to the environment's bucket](/composer/docs/composer-2/enable-saving-logs-to-environment-bucket),\n Cloud Composer saves files with Airflow task logs to the `/logs`\n folder.\n\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-2/audit-logging).\n\nBefore you begin\n----------------\n\n\u003cbr /\u003e\n\n- Your Google Account must have a role that can view objects in environment\n buckets. For more information, see [Access control](/composer/docs/composer-2/access-control).\n\n- Logs stored in environment's bucket use the policy of the bucket.\n Cloud Composer creates buckets with the default policy that keeps\n data forever. For logs stored in Cloud Logging,\n Cloud Composer uses `_Default` and User-defined\n [logs retention periods](/logging/quotas#logs_retention_periods).\n\n- To prevent data loss, logs saved in environment's bucket\n **are not deleted after you delete your environment**. You must manually\n delete logs from your environment's bucket.\n\nView streaming logs\n-------------------\n\nTo view streaming logs in Cloud Logging: \n\n### Console\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------------------------------------\n\nTo view streaming logs in Cloud Logging: \n\n### Console\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\nView Airflow task logs in the environment's bucket\n--------------------------------------------------\n\n| **Note:** You can view Airflow task logs [in the Airflow UI](/composer/docs/composer-2/access-airflow-web-interface).\n\nTo view Airflow task logs in your environment's bucket: \n\n### Console\n\n1. In 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, find a row with the name of your environment\n and in the **DAGs folder** column click the **DAGs** link. The\n **Bucket details** page opens.\n\n3. In the **Folder browser** pane, click `/logs`.\n\n | **Note:** If this folder is empty, then [saving logs to the environment's bucket](/composer/docs/composer-2/enable-saving-logs-to-environment-bucket) might be disabled for your environment.\n\nWhat's next\n-----------\n\n- [Monitor environments](/composer/docs/composer-2/monitor-environments)\n- [Cloud Composer audit logging](/composer/docs/composer-2/audit-logging)"]]