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/09 (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/09 (UTC)."],[[["\u003cp\u003eVersion 1.1 of the Apigee hybrid documentation is end of life and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eApigee hybrid logs can be viewed on Stackdriver, which is automatic on GKE and GKE on-prem, but must be enabled on AKS by setting \u003ccode\u003elogger.enabled\u003c/code\u003e to \u003ccode\u003etrue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo view logs on Stackdriver, users can navigate to the Monitoring Logs Viewer and select their GKE Container, cluster name, and namespace ID.\u003c/p\u003e\n"],["\u003cp\u003eLogs can also be viewed directly from the pod's filesystem using the \u003ccode\u003ekubectl logs\u003c/code\u003e command with the pod name and namespace.\u003c/p\u003e\n"]]],[],null,["# View logs\n\n| You are currently viewing version 1.1 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nThis topic explains how to view log data on\n[Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/) and using the `kubectl logs`\ncommand.\n\nView logs on Stackdriver\n------------------------\n\n\nThis section explains how to view Apigee hybrid logs on Stackdriver and directly using\n`kubectl`.\n| Logging is provided by default on GKE and GKE on-prem. On these platforms, be sure that you have disabled logging in your overrides file by setting `logger.enabled` to `false`. On AKS, you must explicitly enable logging by setting `logger.enabled` to `true` in your overrides file.\n\nIf you are on GKE or Anthos GKE, logs are automatically sent to\n[Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/).\n\n**To view logs on Stackdriver:**\n\n1. Go to [Monitoring Logs Viewer](https://console.cloud.google.com/logs/viewer?_ga=2.139334906.-813617201.1555966039).\n2. In the resource-type drop-down list, select GKE Container, the name of your cluster, and your namespace ID. For example: \n\n For more information, see\n [Viewing\n logs](https://cloud.google.com/logging/docs/view/overview) in the GCP documentation.\n\nThe following example shows hybrid log output in the Log viewer:\n\nView log files directly\n-----------------------\n\nYou can view the logs that are written to each pod's filesystem\ndirectly using [`kubectl`](https://kubernetes.io/docs/reference/kubectl/overview/), as follows: \n\n```\nkubectl logs pod_name -n namespace\n```\n\nFor example: \n\n```text\nkubectl logs apigee-mp-hybrid-docs-test-blue-6fb96f5b9-2k8hp -n my-namespace\n```"]]