Access logging is a feature provided with Istio ingress. By enabling access logging, you will be able to get information about the traffic that passes through the ingress gateway. Access logging is disabled by default.
Enable access logging
To enable access logging, add the following stanza to your overrides file:
... ingress: enableAccesslog: true ...
View access logs
When your cluster is running, you can view access logs as follows:
- Get a list of pods:
kubectl get pods -n istio-system
- View the logs for the
istio-ingressgateway
pod:kubectl logs istio-ingressgatway-pod-name -n istio-system
Logs are returned in JSON format.
- Go to the next step, Enable metrics.