Chapter 14. Customizing Ambari Log + PID Directories
Ambari Server and Agents write log activity output to log files and use a PID-file that contains the process identification number (PID) for their running process. The log files and PID-file are found in following default locations (on their respective hosts):
LOG file location |
PID file location | |
---|---|---|
Ambari Server |
/var/log/ambari-server/ambari-server.log |
/var/run/ambari-server/ambari-server.pid |
Ambari Agent |
/var/log/ambari-agent/ambari-agent.log |
/var/run/ambari-agent/ambari-agent.pid |
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.
You can also modify these locations. Use the following instructions: