Limiting the size of message logs

By default, message logs grow without limit. Limiting message log size requires that the directories and file systems that contain message log files must be checked on a periodic basis to ensure that enough space is available, and to prune the log files or make more space available as necessary.

The routing files can be modified to limit the amount of disk space that is used for message logs.

Consider the routing specification that is shown in Figure 1.

Figure 1. Multiple log files
FATAL:STDOUT:-;UTF8FILE.10.100:msg__pd
mgrd_fatal_utf8.log:
ERROR:STDOUT:-;UTF8FILE.10.100:msg__pd
mgrd__error_utf8.log:
WARNING:STDOUT:-;UTF8FILE.5.1000:msg__
pdmgrd_warning_utf8.log:
NOTICE:STDOUT:-;UTF8FILE.5.1000:msg__p
dmgrd_notice_utf8.log:
NOTICE_VERBOSE:STDOUT:-;XMLFILE.10.500:/var/PolicyDirector/log
/msg__pdmgrd_verbose_utf8.xml:

All message files that are produced by this message log specification are of a determinate size, thus the maximum disk space that can be used by all of the files can be calculated.