Logging akses adalah fitur yang disediakan dengan ingress Istio. Dengan mengaktifkan logging akses, Anda akan dapat
mendapatkan informasi tentang traffic yang melewati gateway masuk. Logging akses dinonaktifkan secara default.
Mengaktifkan logging akses
Untuk mengaktifkan logging akses, tambahkan stanza berikut ke file penggantian Anda:
...
ingress:
enableAccesslog: true
...
Melihat log akses
Saat cluster berjalan, Anda dapat melihat log akses sebagai berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-05 UTC."],[[["\u003cp\u003eThis documentation version 1.1 for Apigee hybrid is end-of-life and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eAccess logging, a feature of Istio ingress, provides traffic information but is disabled by default.\u003c/p\u003e\n"],["\u003cp\u003eOperational logging for all Apigee hybrid services is enabled by default and needs no configuration.\u003c/p\u003e\n"],["\u003cp\u003eTo enable access logging, set \u003ccode\u003eingress: enableAccesslog: true\u003c/code\u003e in the overrides file.\u003c/p\u003e\n"],["\u003cp\u003eAccess logs can be viewed in JSON format by getting the logs for the \u003ccode\u003eistio-ingressgateway\u003c/code\u003e pod using kubectl.\u003c/p\u003e\n"]]],[],null,["# Access logging\n\n| You are currently viewing version 1.1 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.1/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 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.\n3. Go to the next step, [Enable metrics](/apigee/docs/hybrid/v1.1/enable-metrics)."]]