Neste tópico, explicamos como
visualizar dados de registro usando o
Explorador de registros no console Google Cloud ou o
comando kubectl logs.
Ver registros no Explorador de registros
Nesta seção, explicamos como visualizar registros da Apigee híbrida no Explorador de registros ou diretamente, usando
kubectl.
Se você estiver no GKE no Google Cloud ou no local como parte da Google Distributed Cloud, os registros serão enviados automaticamente para o
Cloud Logging.
Para ver registros no Explorador de registros:
No console Google Cloud , acesse a página Explorador de registros.
[[["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-18 UTC."],[],[],null,["# View logs\n\nThis topic explains how to\n[view log data](/logging/docs/view/logs-explorer-interface) by\nusing the Logs Explorer in the Google Cloud console or by using the\n`kubectl logs` command.\n| **Note:** Ingress logs are managed through Cloud Service Mesh. To view access logs, refer to [Accessing\n| logs in Cloud Logging](/service-mesh/v1.12/docs/observability/accessing-logs) in the Cloud Service Mesh documentation.\n\nView logs in the Logs Explorer\n------------------------------\n\n\nThis section explains how to view Apigee hybrid logs in the Logs Explorer or directly by 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 on Google Cloud or on-premises as part of Google Distributed Cloud, logs are automatically sent to\n[Cloud Logging](/monitoring/kubernetes-engine).\n\n**To view logs in the Logs Explorer:**\n\n1. In the Google Cloud console, go to the **Logs Explorer** page.\n\n [Go to the Logs Explorer](https://console.cloud.google.com/logs/query)\n2. In the **Resource type** drop-down list, select\n **Kubernetes Container**, the\n name of your cluster, and your namespace ID.\n\n For more information, see\n [View\n logs](/logging/docs/view/overview) in the Google Cloud console documentation.\n\nThe following example shows hybrid log output in the Logs Explorer:\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```"]]