Symptoms

Business Automation logs may grow significantly and take considerable disk space size. In case you do not have enough disk capacity to store logs, you may need to setup log rotation.

Resolution

Business Automation for Linux

Business Automation log rotation settings are configured in the file /etc/logrotate.d/bm.logrotate on BA application host (which is a link to the file /usr/local/bm/conf/bm.logrotate).

The settings are applied to *.log files located in /usr/local/bm/log/ directory. By default, it is configured for rotating all files in ~bm/log/ with monthly cycling and saving up to 12 last archived logs, like in the example below:

/usr/local/bm/log/*.log {
        rotate 12
        compress
        monthly
        copytruncate
        notifempty
        missingok
        nocreate
        noolddir
        size 1024M
}

Additionally, rotation of store log could be configured on BA store host. Object of rotation is logfile /usr/local/bm/templatestore/logs/store.log. To add it to logrotate, create file /etc/logrotate.d/store with the following content:

/usr/local/bm/templatestore/logs/store.log {
        rotate 14
        weekly
        compress
        dateext
        postrotate
            /sbin/service httpd reload > /dev/null 2>/dev/null || true
        endscript
}

BA for Windows

In Business Automation for Windows there is only one log rotation parameter keepdays set in the file logrotate.conf located in the C:\Program Files\Parallels\PBA\etc\ssm.conf.d\ directory. For example, the following configuration sets the log rotation interval to 15 days:

[arguments]
keepdays 15

Internal content