Log rotation - Platform - BlueCat Gateway - 20.6.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
20.6.1

By default, log rotation is enabled for the error.log, access.log, and other_vhosts_access.log files. New files are created each time the Apache server is restarted or it exceeds 10MB in size. You can check the existing file format and modify settings in the Apache configuration files that are available at /etc/apache2/sites-available.

By default, the log rotation is enabled to rotate the files once they reach 10MB. You can override these settings by mapping the sites-available directory with your specific settings.

All log messages that are output by BlueCat Gateway and exception messages for when BlueCat Gateway crashes, are captured in log files prefixed with error.log.

Log files prefixed with access.log captures all requests made to Apache.

Note: It is possible to now add messages directly to Apache server logs. You can add messages using the app.logger object where app is imported from main_app. Adding messages are useful if there is no user session when a workflow is executed.

For example, to configure log rotation, type the following:

"|/usr/bin/rotatelogs ${APACHE_LOG_DIR}/<logtype>.log.%Y-%m-%d-%H_%M_%S 10M"