Pada 15 September 2026, semua lingkungan Cloud Composer 1 dan Cloud Composer 2 versi 2.0.x akan mencapai akhir masa pakainya yang direncanakan, dan Anda tidak akan dapat menggunakannya. Sebaiknya rencanakan migrasi ke Cloud Composer 3.
Halaman ini menjelaskan cara mengakses dan melihat log Apache Airflow untuk Cloud Composer.
Tentang jenis log
Cloud Composer memiliki log Airflow berikut:
Log streaming. Log ini berisi log tugas Airflow, serta log komponen Airflow di lingkungan Anda, seperti penjadwal dan pekerja Airflow.
Untuk mempelajari Cloud Logging dan Cloud Monitoring untuk
lingkungan Cloud Composer, lihat
Memantau lingkungan.
Cloud Composer membuat log audit, seperti log Aktivitas Admin. Untuk informasi selengkapnya, lihat
Melihat log audit.
Sebelum memulai
Lingkungan Cloud Composer 3
tidak menyimpan log tugas Airflow ke bucket lingkungan. Sebagai
alternatif, Anda dapat mengonfigurasi sink di
Cloud Logging untuk merutekan log ke lokasi mana pun yang didukung.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-26 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,["# View Airflow logs\n\n\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---------------\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\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-------------------\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\nWhat's next\n-----------\n\n- [Monitor environments](/composer/docs/composer-3/monitor-environments)\n- [Cloud Composer audit logging](/composer/docs/composer-3/audit-logging)"]]