Ambari Troubleshooting Guide
Also available as:
PDF
loading table of contents...

Reviewing Ambari Log Files

Find files that log activity on an Ambari host in the following locations:

  • Ambari Server logs on the Ambari Server host:

    /var/log/ambari-server/ambari-server.log

  • Ambari Agent logs on any host with an Ambari Agent:

    /var/log/ambari-agent/ambari-agent.log

  • Ambari Agent task logs on any host with an Ambari Agent:

    /var/lib/ambari-agent/data/

    This location contains logs for all tasks executed on an Ambari Agent host. Each log name includes:

    • command-N.json - the command file corresponding to a specific task.

    • output-N.txt - the output from the command execution.

    • errors-N.txt - error messages.

[Note]Note

You can configure the logging level for ambari-server.log by modifying /etc/ambari-server/conf/log4j.properties on the Ambari Server host. For the Ambari Agents, you can set the loglevel in /etc/ambari-agent/conf/ambari-agent.ini on each host running an Ambari Agent. In general, you should also consider setting log-rotate policies for your systems. Refer to your operating system documentation and http://linuxconfig.org/logrotate-8-manual-page for more information on setting up log-rotate in your environment.