Debug NATS errors

The main NATS log file is created at /opt/bitnami/nats/logs/gnatsd.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/gnatsd.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 service bitnami restart nats
Last modification April 8, 2020