Access logging

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:

  1. Get a list of pods:
    kubectl get pods -n namespace
  2. View the logs for the istio-ingressgateway pod:
    kubectl logs istio-ingressgatway-pod-name -n namespace

    Logs are returned in JSON format.

  3. Go to the next step, Enable metrics.