Di Cloud Logging, Anda dapat melihat log eksekusi Integrasi yang berisi detail integrasi, seperti status, performa, versi integrasi, parameter permintaan dan respons, serta konfigurasi pemicu dan tugas. Untuk mengetahui informasi selengkapnya tentang log eksekusi di Cloud Logging, lihat Log eksekusi integrasi di Cloud Logging. Untuk mengetahui informasi tentang batasan dan harga, lihat Batasan dan Harga.
Secara default, Cloud Logging dinonaktifkan untuk integrasi. Anda dapat mengaktifkan logging untuk integrasi dengan mengedit versi integrasi yang tidak dipublikasikan.
Sebelum memulai
Untuk menyimpan log eksekusi integrasi di Cloud Logging, Anda harus mengaktifkan Cloud Logging untuk integrasi terlebih dahulu. Untuk melakukannya, ikuti langkah-langkah berikut:
Di Google Cloud console, buka halaman Application Integration.
Halaman Integrasi akan muncul yang mencantumkan semua integrasi yang tersedia dalam Google Cloud project.
Pilih integrasi yang ada atau buat integrasi baru yang ingin Anda aktifkan Cloud Logging-nya.
Tindakan ini akan membuka integrasi di editor integrasi.
Pilih versi DRAFT integrasi Anda. Anda tidak dapat mengubah setelan untuk versi yang dipublikasikan atau tidak dipublikasikan yang tidak dalam mode draf. Untuk daftar versi integrasi, lihat Versi.
Klik settings (Ringkasan integrasi) di toolbar desainer. Halaman ringkasan integrasi akan muncul.
Di Log settings, klik tombol Enable Cloud Logging, lalu dari daftar Severity, pilih jenis tingkat keparahan log yang ingin Anda simpan di Cloud Logging:
Info: Pilih opsi ini untuk mengambil semua status eksekusi: SUCCEEDED, FAILED, PROCESSING, PENDING, SUSPENDED, RETRY_ON_HOLD, dan CANCELLED.
Error: Pilih opsi ini untuk merekam status eksekusi berikut: FAILED dan CANCELLED.
Peringatan: Pilih opsi ini untuk mengambil status eksekusi berikut: FAILED dan CANCELLED.
Untuk mengetahui daftar status eksekusi integrasi, lihat Status eksekusi.
Klik Simpan.
Melihat log
Untuk melihat log di Cloud Logging, Anda harus mengaktifkan Cloud Logging terlebih dahulu, lalu ikuti langkah-langkah berikut:
Di Google Cloud console, buka halaman Application Integration.
Untuk melihat log eksekusi integrasi di Cloud Logging, gunakan salah satu metode berikut:
Di menu navigasi, klik Logs, lalu klik View Cloud Logs.
Di menu navigasi, klik Logs, lalu di kolom Cloud Logging, klik View. Jika Cloud Logging diaktifkan, kolom ini akan menyediakan link untuk melihat log di Cloud Logging. Jika Cloud Logging tidak diaktifkan, kolom ini disetel ke Nonaktif.
Di editor Integrasi, setelah Anda menguji integrasi, di panel Uji integrasi, klik Lihat Cloud Logs.
Halaman Logs Explorer akan muncul. Log ditampilkan selama tiga jam terakhir untuk kueri default berikut:
Log integrasi di Cloud Logging tunduk pada batasan berikut:
Cloud Logging hanya mendukung entri log yang berukuran hingga 256 KiB. Jika log Anda melebihi batas ini, parameter permintaan dan respons tidak akan ditampilkan dalam detail logging. Untuk mengetahui informasi tentang kuota dan batas Cloud Logging, lihat Kuota dan batas. Untuk mengatasi error ini, perbarui variabel integrasi agar nilainya tidak melebihi batas. Atau, Anda juga dapat melihat log ini di Integrasi Aplikasi.
Jika logging lokal dinonaktifkan, log eksekusi tidak akan dikirim ke Cloud Logging meskipun Cloud Logging diaktifkan.
Harga
Untuk mengetahui informasi tentang harga Cloud Logging, lihat Harga Cloud Logging.
[[["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-09-03 UTC."],[[["\u003cp\u003eCloud Logging, when enabled, allows you to view integration execution logs, including details on status, performance, version, request/response parameters, and configurations.\u003c/p\u003e\n"],["\u003cp\u003eTo enable Cloud Logging for an integration, you need to access the integration settings in the draft version and toggle the "Enable Cloud Logging" option, selecting a severity level (Info, Error, or Warning).\u003c/p\u003e\n"],["\u003cp\u003eLogs can be accessed through the Application Integration page in the Google Cloud console, either through the Logs section or directly from the integration editor after testing.\u003c/p\u003e\n"],["\u003cp\u003eSpecific logs can be viewed by using queries based on execution ID, integration name, or status (e.g., failed executions), and parameters.\u003c/p\u003e\n"],["\u003cp\u003eThere are limitations to consider when using Cloud Logging, such as a maximum log entry size of 256 KiB and the requirement for local logging to be enabled for Cloud Logging to receive the execution logs.\u003c/p\u003e\n"]]],[],null,["# View logs in Cloud Logging\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nView logs in Cloud Logging\n==========================\n\nIn Cloud Logging, you can view the Integration execution logs containing integration details, such as status, performance, integration version, request and response parameters, and the trigger and task configurations. For more information about execution logs in Cloud Logging, see [Integration execution logs in Cloud Logging](/application-integration/docs/introduction-logs#cloud-logs). For information about limitations and pricing, see [Limitations](#limitations) and [Pricing](#pricing).\n\nBy default, Cloud Logging is disabled for integrations. You can [enable\nlogging for an integration](#before-you-begin) by editing the unpublished version of the integration.\n\nBefore you begin\n----------------\n\nTo store integration execution logs in Cloud Logging, you must first enable Cloud Logging for your integration. To do so, follow these steps:\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. In the navigation menu, click **Integrations** .\n\n The **Integrations** page appears listing all the integrations available in the Google Cloud project.\n3. Select an existing integration or [create a new integration](/application-integration/docs/create-integrations) for which you want to enable Cloud Logging.\n\n This opens the integration in the *integration editor*.\n4. Select the `DRAFT` version of your integration. You can't modify the settings for a published or an unpublished version that isn't in the draft mode. For a list of integration versions, see [Versions](/application-integration/docs/integration-versions).\n5. Click settings (**Integration summary**) in the designer toolbar. The integration summary page appears.\n 1. In the **Log settings** , click the **Enable Cloud Logging** toggle and then from the **Severity** list, select the severity type of the logs that you want to store in Cloud Logging:\n - **Info** : Select this option to capture all execution statuses: `SUCCEEDED`, `FAILED`, `PROCESSING`, `PENDING`, `SUSPENDED`, `RETRY_ON_HOLD`, and `CANCELLED`.\n - **Error** : Select this option to capture the following execution statuses: `FAILED` and `CANCELLED`.\n - **Warning** : Select this option to capture the following execution statuses: `FAILED` and `CANCELLED`. **Note:** Currently, both **Error** and **Warning** severity levels capture `FAILED` and `CANCELLED` execution states.\n - For a list of integration execution states, see [Execution states](/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions#state).\n 2. Click **Save**.\n\nView logs\n---------\n\nTo view logs in Cloud Logging, you must first [enable Cloud Logging](/application-integration/docs/before-you-begin) and then follow these steps:\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. To view the integration execution logs in Cloud Logging, use one of the following methods:\n - In the navigation menu, click **Logs** , and then, click **View Cloud Logs**.\n - In the navigation menu, click **Logs** , and then in the **Cloud Logging** field, click **View** . If Cloud Logging is enabled, this field provides a link to view logs in Cloud Logging. If Cloud Logging is not enabled, this field is set to **Disabled**.\n - In the Integration editor, after you [test an integration](/application-integration/docs/test-publish-integrations), in the **Test integration** pane, click **View Cloud Logs**.\n\n The **Logs Explorer** page appears. Logs are displayed for the last three hours for the following default query: \n\n ```\n resource.type=integrations.googleapis.com/IntegrationVersion\n ```\n3. To understand the log format of [Application Integration logs](/logging/docs/api/platform-logs#application_integration), see the [`log_entries` payload](https://github.com/googleapis/googleapis/blob/master/google/cloud/integrations/v1alpha/log_entries.proto).\n\nSample queries\n--------------\n\nYou can use the following queries to view logs in Cloud Logging:\n\n- To view all integration execution logs:\n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n \n ```\n- You can view integration execution logs for a specific execution ID:\n\n - Searches only the parents executions with the given execution ID: \n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n jsonPayload.executionId=\"EXECUTION_ID\u003cvar translate=\"no\"\u003e\"\n \u003c/var\u003e\n ```\n - Searches for both parent and child executions launched from the given execution ID: \n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n \"EXECUTION_ID\u003cvar translate=\"no\"\u003e\"\n \u003c/var\u003e\n ```\n- To view integration execution logs for a specific integration:\n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\" \n \"INTEGRATION_NAME\"\n ```\n Or \n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n jsonPayload.integration=\"INTEGRATION_NAME\u003cvar translate=\"no\"\u003e\"\n \u003c/var\u003e\n ```\n- To view failed integration executions for a specific integration:\n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n jsonPayload.integrationExecutionDetails.integrationExecutionState=\"FAILED\"\n jsonPayload.integration=\"INTEGRATION_NAME\u003cvar translate=\"no\"\u003e\"\n \u003c/var\u003e\n ```\n- To view logs with specific request param name. For example, the following query requests logs for the `requestUrl` parameter:\n\n ```\n resource.type=\"integrations.googleapis.com/IntegrationVersion\"\n \"requestUrl\"\n ```\n- For more sample queries, see [Cloud Logging sample queries](/logging/docs/view/query-library).\n\n\u003cbr /\u003e\n\nLimitations\n-----------\n\nIntegration logs in Cloud Logging are subject to the following limitations:\n\n- Cloud Logging only supports log entries that are up to 256 KiB in size. If your logs exceed this limit, the request and response parameters are not shown in the logging details. For information about Cloud Logging quotas and limits, see [Quotas and limits](/logging/quotas). To resolve this error, update the integration variables so that the value doesn't exceed the limit. Alternatively, you can also [view these logs in Application Integration](/application-integration/docs/integration-execution-logs).\n- If [local logging](/application-integration/docs/local-logging) is disabled, the execution logs are not sent to Cloud Logging even if Cloud Logging is enabled.\n\nPricing\n-------\n\nFor information about pricing for Cloud Logging, see [Cloud Logging pricing](/stackdriver/pricing#logging-costs).\n\nWhat's next\n-----------\n\n- Learn about [execution logs in Cloud Logging](/application-integration/docs/introduction-logs#cloud-logs).\n- Learn how to [query and view logs](/logging/docs/log-analytics).\n- Learn about [log based metrics](/logging/docs/logs-based-metrics).\n- Learn how logs are stored, routed and how you can [export to different destinations](/logging/docs/routing/overview).\n- Learn how to [create alerts on log-based metrics](/logging/docs/logs-based-metrics/charts-and-alerts)."]]