Managing and Monitoring a Cluster
Also available as:
PDF
loading table of contents...

Limit the size and number of backup log files for a service

Edit properties in the log4j property group for a service to limit backup log files.

Log4j properties and values that limit the size and number of backup log files for each service appear above the log4j template file in the log4j property group. To limit backup log files for a service, first access the Log4j property group for the service.
  1. In Ambari Web, browse to Services > [SERVICE_NAME] > Configs > Advanced[SERVICE_NAME]-log4j.
  2. Edit the values for the [SERVICE_NAME] backup file size and [SERVICE_NAME] # of backup files properties.
  3. In Configs, click Save.