Zugriffs-Logging ist eine Funktion von Istio Ingress. Wenn Sie das Zugriffs-Logging aktivieren, können Sie Informationen über den Traffic abrufen, der durch das Ingress-Gateway geleitet wird. Zugriffs-Logging ist standardmäßig deaktiviert.
Zugriffs-Logging aktivieren
Fügen Sie der Überschreibungsdatei folgende Zeilengruppe hinzu, um das Zugriffs-Logging zu aktivieren:
...
ingress:
enableAccesslog: true
...
Zugriffslogs anzeigen
Wenn Ihr Cluster ausgeführt wird, können Sie so Zugriffslogs ansehen:
Rufen Sie eine Liste der Istio-Pods ab:
kubectl get pods -n istio-system
So rufen Sie die Logs für den Pod istio-ingressgateway 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 documentation covers Apigee hybrid version 1.4, which is end of life and should be upgraded."],["Istio ingress provides access logging, which allows you to gather information about traffic through the gateway, although it is disabled by default."],["Enabling access logging can be done by adding `enableAccesslog: true` under the `ingress` section in the overrides file."],["You can view access logs by retrieving a list of Istio pods and then viewing the logs for the `istio-ingressgateway` pod."],["Apigee hybrid services output operational log information by default without any additional configuration."]]],[]]