How to enable debug logging for nginx

How to enable the debug logging for Nginx?


   KB 24562        Last updated on 2023-10-6  




0.00
(0 votes)

Warning: Enabling DEBUG log level will log sensitive information including authentication tokens, do not turn on DEBUG log in production. If you have to enable debug log make sure to take proper steps to destroy logs afterwards.

Problem

Debug logging provides a more detailed and verbose level of logging, which can be immensely helpful in identifying and resolving complex issues. The debug logging makes it easier to get detailed error messages, analyze traffic and requests, and do third-party integration troubleshooting.


Solution

The following steps need to be performed from CLI to enable the debug logging for Nginx.

On server level

zmprov ms `zmhostname` zimbraReverseProxyLogLevel debug
zmproxyctl restart  

On global level

zmprov mcf zimbraReverseProxyLogLevel debug
zmproxyctl restart  

Based on the requirements the value of zimbraReverseProxyLogLevel can be changed as debug,info,notice,warn,error,crit,debug_http,debug_mail,debug_core,debug_zimbra

Below is the description of the attribute zimbraReverseProxyLogLevel

zimbraReverseProxyLogLevel
    Log level for NGINX Proxy error log

               type : enum
              value : debug,info,notice,warn,error,crit,debug_http,debug_mail,debug_core,debug_zimbra
           callback :
          immutable : false
        cardinality : single
         requiredIn :
         optionalIn : globalConfig,server
              flags : serverInherited
           defaults : info
                min :
                max :
                 id : 723
    requiresRestart : nginxproxy
              since : 5.0.10
    deprecatedSince :
Submitted by: Nagesh Bhagwat
Verified Against: ZCS 8.8 Date Created: 2020-04-13
Article ID: https://wiki.zimbra.com/index.php?title=How_to_enable_debug_logging_for_nginx Date Modified: 2023-10-06



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search