In diesem Thema wird erläutert, wie Sie Logdaten aufrufen, indem Sie den Log-Explorer in der Google Cloud Console oder den Befehl kubectl logs verwenden.
Logs im Log-Explorer ansehen
In diesem Abschnitt wird erläutert, wie Sie Apigee Hybrid-Logs im Log-Explorer oder direkt mit kubectl ansehen können.
Wenn Sie GKE oder Anthos GKE verwenden, werden Logs automatisch an Cloud Logging gesendet.
So rufen Sie Logs im Log-Explorer auf:
Rufen Sie in der Google Cloud Console die Seite Log-Explorer auf.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-12 (UTC)."],[[["This document explains how to view Apigee hybrid log data using the Logs Explorer in the Google Cloud console or the `kubectl logs` command."],["Ingress logs are managed through Anthos Service Mesh (ASM), and access logs can be viewed in Cloud Logging per the ASM documentation."],["Logging is provided by default on GKE and GKE on-prem, and on AKS you must explicitly enable logging by setting `logger.enabled` to `true`."],["Logs can be viewed in the Logs Explorer by selecting **Kubernetes Container** under **Resource type**, along with the cluster name and namespace ID."],["You can also view logs directly from the pod's filesystem by using the `kubectl logs pod_name -n namespace` command."]]],[]]