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 in der Google Cloud oder lokal als Teil von Google Distributed Cloud 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-10 (UTC)."],[[["Logs can be viewed using the Logs Explorer in the Google Cloud console or directly via the `kubectl logs` command."],["In GKE and GKE on-prem, logging is enabled by default, whereas in AKS you must explicitly enable logging."],["To view logs in the Logs Explorer, navigate to the Logs Explorer in the Google Cloud console and select \"Kubernetes Container,\" your cluster name, and namespace ID."],["You can directly view log files by running the command `kubectl logs pod_name -n namespace` within your terminal."]]],[]]