Dans Cloud Logging, vous pouvez consulter les journaux d'exécution de l'intégration contenant des informations sur l'intégration, telles que l'état, les performances, la version de l'intégration, les paramètres de requête et de réponse, ainsi que les configurations du déclencheur et de la tâche. Pour en savoir plus sur les journaux d'exécution dans Cloud Logging, consultez la section Journaux d'exécution d'intégration dans Cloud Logging. Pour en savoir plus sur les limites et les tarifs, consultez les pages Limites et Tarifs.
Pour stocker les journaux d'exécution de l'intégration dans Cloud Logging, vous devez d'abord activer Cloud Logging pour votre intégration. Pour cela, procédez comme suit :
Dans la console Google Cloud , accédez à la page Application Integration (Intégration d'applications).
Dans le menu de navigation, cliquez sur Intégrations.
La page Intégrations s'affiche et liste toutes les intégrations disponibles dans le projet Google Cloud .
Sélectionnez une intégration existante ou créez-en une pour laquelle vous souhaitez activer Cloud Logging.
Cela entraîne son ouverture dans l'éditeur d'intégrations.
Sélectionnez la version DRAFT de votre intégration. Vous ne pouvez pas modifier les paramètres d'une version publiée ou non publiée qui n'est pas en mode brouillon. Pour obtenir la liste des versions d'intégration, consultez la section Versions.
Cliquez sur settings (Récapitulatif de l'intégration) dans la barre d'outils du concepteur. La page récapitulative de l'intégration s'affiche.
Dans Paramètres des journaux, cliquez sur l'option Activer la journalisation dans Cloud Logging, puis dans la liste Sévérité, sélectionnez le niveau de gravité des journaux que vous souhaitez stocker dans Cloud Logging :
Info: sélectionnez cette option pour capturer tous les états d'exécution: SUCCEEDED, FAILED, PROCESSING, PENDING, SUSPENDED, RETRY_ON_HOLD et CANCELLED.
Erreur: sélectionnez cette option pour capturer les états d'exécution suivants: FAILED et CANCELLED.
Avertissement: Sélectionnez cette option pour capturer les états d'exécution suivants: FAILED et CANCELLED.
Pour obtenir la liste des états d'exécution des intégrations, consultez la section États d'exécution.
Cliquez sur Enregistrer.
Afficher les journaux
Pour afficher les journaux dans Cloud Logging, vous devez d'abord activer Cloud Logging, puis suivre ces étapes:
Dans la console Google Cloud , accédez à la page Application Integration (Intégration d'applications).
Pour afficher les journaux d'exécution de l'intégration dans Cloud Logging, utilisez l'une des méthodes suivantes :
Dans le menu de navigation, cliquez sur Journaux, puis sur Afficher les journaux Cloud.
Dans le menu de navigation, cliquez sur Journaux, puis dans le champ Cloud Logging, cliquez sur Afficher. Si Cloud Logging est activé, ce champ fournit un lien pour afficher les journaux dans Cloud Logging. Si Cloud Logging n'est pas activé, ce champ est défini sur Désactivé.
Dans l'éditeur d'intégrations, après avoir testé une intégration, dans le volet Tester l'intégration, cliquez sur Afficher les journaux Cloud.
La page Explorateur de journaux s'affiche. Les journaux des trois dernières heures s'affichent pour la requête par défaut suivante:
Pour afficher les journaux avec un nom de paramètre de requête spécifique. Par exemple, la requête suivante demande des journaux pour le paramètre requestUrl:
Les journaux d'intégration dans Cloud Logging sont soumis aux limites suivantes:
Cloud Logging n'accepte que les entrées de journal dont la taille est limitée à 256 Ko. Si vos journaux dépassent cette limite, les paramètres de requête et de réponse ne s'affichent pas dans les détails de la journalisation. Pour en savoir plus sur les quotas et les limites de Cloud Logging, consultez la section Quotas et limites. Pour résoudre cette erreur, mettez à jour les variables d'intégration afin que la valeur ne dépasse pas la limite. Vous pouvez également afficher ces journaux dans l'intégration d'applications.
Si la journalisation locale est désactivée, les journaux d'exécution ne sont pas envoyés à Cloud Logging, même si Cloud Logging est activé.
Tarifs
Pour en savoir plus sur les tarifs de Cloud Logging, consultez la section Tarifs de Cloud Logging.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)."]]