How To Control application.log file size and backups

Overview

This instruction explains how to control the size of your application log file (Under: /var/log/cloudbolt/) and backups.

Considerations

By default the logging configuration is set in settings.py. Since this file gets overwritten with each update, we want to override this configuration in /var/opt/cloudbolt/proserv/customer_settings.py -- a file that is preserved across CloudBolt updates.

Procedure

Step 1: To override the default logging settings for the application.log file and jobengine.log you can add the following to your customer_settings.py file

This bumps the max size for each log from 5MB to 10MB and retains 10 backups. You can adjust the size and number of backups to suit your environment.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.