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 namespace
- View the logs for the
kubectl logs istio-ingressgatway-pod-name -n namespace
Logs are returned in JSON format.
- Go to the next step, Enable metrics.