When rotating the logfile in Titan/Cornerstone, it is sometimes beneficial to have access to the name of the previous logfile. This is useful if you want to move or archive the previous logfile offsite, or even delete the file to save space.


Using the Events Manager, Actions can be set up to act on the Rotation of the Logfile. Once the logfile is rotated, the previous logfile name is available through the following system variables.


%SVR.LOGFILENAME.PREVIOUS% - contains the fully qualified path and filename of the previous logfile

%SVR.LOGFILENAME.PREVIOUS.PATH% - contains the fully qualified path of the previous logfile

%SVR.LOGFILENAME.PREVIOUS.NAME% - contains the filename and extension of the previous logfile

%SVR.LOGFILENAME.PREVIOUS.NAME.NAME% - contains the filename (without the path and without the extension) of the previous logfile

%SVR.LOGFILENAME.PREVIOUS.NAME.EXT% - contains just the filename's extension of the previous logfile