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 provides instructions on how to view Apigee hybrid log data using the Logs Explorer in the Google Cloud console or the `kubectl logs` command."],["Logs are automatically sent to Cloud Logging on GKE and Anthos GKE, but logging must be explicitly enabled on AKS by setting `logger.enabled` to `true`."],["To view logs in the Logs Explorer, select \"Kubernetes Container\" as the resource type and specify your cluster name and namespace ID."],["You can directly view log files written to each pod's filesystem by using the `kubectl logs pod_name -n namespace` command."],["Ingress logs are managed through Anthos Service Mesh (ASM), which requires consulting the ASM documentation for access."]]],[]]