Log rotation - Platform - BlueCat Gateway - 18.6.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
18.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 apache/configuration/sites-available.

If you are upgrading from previous versions of DNS Integrity Gateway, you must enable Log rotation for the Apache configuration files in <dns_integrity_gateway>/apache/sites-available.

All log messages that are output by DNS Integrity Gateway as well as exception messages for when DNS Integrity 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"