azurenats

Debug NATS errors

The main NATS log file is created at /opt/bitnami/nats/logs/nats-server.log.

Enable verbose logging

You can improve the log verbosity by enabling the debug mode. That way, you will obtain highest level of detail in the information shown in the log file that helps you to debug errors in your NATS installation. Follow these instructions:

  • Edit the /opt/bitnami/nats/conf/nats-server.conf file to modify the “logging section” as shown below:

      # Logging options
      debug: true
      trace: true
    
  • Restart NATS to make the changes take effect:

      $ sudo /opt/bitnami/ctlscript.sh restart nats
    
Last modification December 21, 2022