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-09-03 (UTC)."],[[["\u003cp\u003eThis documentation covers Apigee hybrid version 1.4, which is end of life and should be upgraded.\u003c/p\u003e\n"],["\u003cp\u003eIstio ingress provides access logging, which allows you to gather information about traffic through the gateway, although it is disabled by default.\u003c/p\u003e\n"],["\u003cp\u003eEnabling access logging can be done by adding \u003ccode\u003eenableAccesslog: true\u003c/code\u003e under the \u003ccode\u003eingress\u003c/code\u003e section in the overrides file.\u003c/p\u003e\n"],["\u003cp\u003eYou can view access logs by retrieving a list of Istio pods and then viewing the logs for the \u003ccode\u003eistio-ingressgateway\u003c/code\u003e pod.\u003c/p\u003e\n"],["\u003cp\u003eApigee hybrid services output operational log information by default without any additional configuration.\u003c/p\u003e\n"]]],[],null,["# Access logging\n\n| You are currently viewing version 1.4 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\n[Access\nlogging](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/overview) is a feature provided with Istio ingress. By enabling access logging, you will be able\nto get information about the traffic that passes through the ingress gateway. Access logging\nis disabled by default.\n| All of the Apigee hybrid services running in the cluster output operational log information. Operational logging is enabled by default and requires no special configuration. See [Logging overview](/apigee/docs/hybrid/v1.4/logging).\n\nEnable access logging\n---------------------\n\nTo enable access logging, add the following\nstanza to your overrides file: \n\n```\n...\ningress:\n enableAccesslog: true\n...\n```\n\nView access logs\n----------------\n\n\nWhen your cluster is running, you can view access logs as follows:\n\n1. Get a list of istio pods: \n\n ```\n kubectl get pods -n istio-system\n ```\n | **Note:** `istio-system` is the default namespace for istio.\n2. View the logs for the `istio-ingressgateway` pod: \n\n ```\n kubectl logs istio-ingressgatway-pod-name -n istio-system\n ```\n\n\n Logs are returned in JSON format."]]