Billing Log Files

Log files are stored in /usr/local/billmax/logs and /usr/local/billmax/tmp. The compression and retention of log files is specified in /usr/local/billmax/local/manageFiles using XML.

These are example entries from /usr/local/billmax/local/manageFiles.

        <BxDirInfo>
                <dirName>${BILLMAXDIR}/tmp</dirName>
                <BxFileInfo>
                        <fileRegex>^[a-zA-Z0-9].*</fileRegex>
                        <ndays>3</ndays>
                        <includedirectories>1</includedirectories>
                        <compress>0</compress>
                </BxFileInfo>
        </BxDirInfo>
        <BxDirInfo>
                <dirName>${BILLMAXDIR}/logs</dirName>
                <BxFileInfo>
                        <fileRegex>nightly_.*closeofday\.log</fileRegex>
                        <ndays>3</ndays>
                        <includedirectories>0</includedirectories>
                        <compress>1</compress>
                </BxFileInfo>
        </BxDirInfo>

${BILLMAXDIR}
Typically replaced with /usr/local/billmax.
dirName
The directory to consider.
fileRegex
A Regular Expression that specifies the files to consider. In first example, any file name beginning with and consisting of letters (upper and lowercase) and numbers. In the second example, any file consisting of nightly_ followed by any characters then followed by closeofday.log.
ndays
The number of days the file should be retained.
includedirectories
Specifies whether or not to include subdirectories in the processing.
0
Do not include subdirectories.
1
Include subdirectories.
compress
Specifies whether or not to compress the log files.
0
Do not compress the log files.
1
Compress the log files.
Note: Deletion based on ndays is done by comparing the system date with the with the file date. Files will not be deleted during BillMax testing by means of running the BillMax date forward as the system date itself is not changed.