Pivotal Knowledge Base


How to enable debug logging in Ambari Server


Product Version
Pivotal HD / Pivotal HDP 3.0.x / 2.3, 2.4
Ambari 2.x


When troubleshooting Ambari issues, it may be necessary to enable debug logging in the Ambari Server log /var/log/ambari-server/.

If there is a need to enable debug on the Ambari agent, see How to enable debug logging in Ambari Agent


To enable debug logging in Ambari server follow these steps:

1. Open the relevant configuration file in a UNIX text editor: 

  • Ambari Server Log Configuration: /etc/ambari-server/conf/log4j.properties

2. Locate the entry "log4j.rootLogger":

[root@hawq20 conf]# grep rootLogger /etc/ambari-server/conf/log4j.properties
[root@hawq20 conf]#

3. Replace "INFO" with "DEBUG":

[root@hawq20 conf]# grep rootLogger /etc/ambari-server/conf/log4j.properties
[root@hawq20 conf]#

4. Save the configuration file and close it.

5. Restart Ambari server: 

ambari-server restart


  1. Ambari server logging level will only change on one host and will not affect other hosts in the cluster.
  2. The debug logging can be very verbose, available disk space should be checked before enabling debug logging and debug logging should be disabled as soon as troubleshooting has completed.





Powered by Zendesk