Apache Ambari Administration
Also available as:
PDF
loading table of contents...

Chapter 18. 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 for their running process. The log files and .pid file are found on their respective hosts in following default locations:

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 for more information on setting up log-rotate in your environment.

You can also modify these locations. Use the following instructions:

More Information

http://linuxconfig.org/logrotate-8-manual-page