github.com/nginxinc/kubernetes-ingress@v1.12.5/docs-web/logging-and-monitoring/logging.md (about)

     1  # Logging
     2  
     3  The NGINX Ingress Controller exposes the logs of the Ingress Controller process (the process that generates NGINX configuration and reloads NGINX to apply it) and NGINX access and error logs. All logs are sent to the standard output and error of the Ingress Controller process. To view the logs, you can execute the `kubectl logs` command for an Ingress Controller pod. For example:
     4  ```
     5  $ kubectl logs <nginx-ingress-pod> -n nginx-ingress
     6  ```
     7  
     8  ## Ingress Controller Process Logs
     9  
    10  The Ingress Controller process logs are configured through the `-v` command-line argument of the Ingress Controller, which sets the log verbosity level. The default value is `1`, for which the minimum amount of logs is reported. The value `3` is useful for troubleshooting: you will be able to see how the Ingress Controller gets updates from the Kubernetes API, generates NGINX configuration and reloads NGINX.
    11  
    12  See also the doc about Ingress Controller [command-line arguments](/nginx-ingress-controller/configuration/global-configuration/command-line-arguments).
    13  
    14  ## NGINX Logs
    15  
    16  The NGINX includes two logs:
    17  * *Access log*, where NGINX writes information about client requests in the access log right after the request is processed. The access log is configured via the [logging-related](/nginx-ingress-controller/configuration/global-configuration/configmap-resource#logging) ConfigMap keys:
    18      * `log-format` for HTTP and HTTPS traffic.
    19      * `stream-log-format` for TCP, UDP, and TLS Passthrough traffic.
    20  
    21      Additionally, you can disable access logging with the `access-log-off` ConfigMap key.
    22  * *Error log*, where NGINX writes information about encountered issues of different severity levels. It is configured via the `error-log-level` [ConfigMap key](/nginx-ingress-controller/configuration/global-configuration/configmap-resource#logging). To enable debug logging, set the level to `debug` and also set the `-nginx-debug` [command-line argument](/nginx-ingress-controller/configuration/global-configuration/command-line-arguments), so that NGINX is started with the debug binary `nginx-debug`.
    23  
    24  See also the doc about [NGINX logs](https://docs.nginx.com/nginx/admin-guide/monitoring/logging/) from NGINX Admin guide.