2019: How-To: Using Event Manager Variables for log file access

2019: How-To: Using Event Manager Variables for log file access

There are times in the Event Manager when access to the server logfile name is needed. For example, you may want to move the previous logfile offsite to a new folder once the logfile is rotated. Or, you may want to know the filename of the current log or the path. 

Titan FTP Server and Cornerstone MFT Server 2019 have the following variables for use in the event management system.

%SVR.LOGFILENAME%
%SVR.LOGFILENAME.PATH%
%SVR.LOGFILENAME.NAME%
%SVR.LOGFILENAME.NAME.NAME%
%SVR.LOGFILENAME.NAME.EXT%
%SVR.LOGFILENAME.PREVIOUS%
%SVR.LOGFILENAME.PREVIOUS.PATH%
%SVR.LOGFILENAME.PREVIOUS.NAME%
%SVR.LOGFILENAME.PREVIOUS.NAME.NAME%
%SVR.LOGFILENAME.PREVIOUS.NAME.EXT%

Hint: To see exactly what is printed for each of these variables, set up a test event, such as On Logfile Rotated with an action to Write To Custom File and dump the values of these variables. The Action could look like....

SVR.LOGFILENAME = %SVR.LOGFILENAME%
SVR.LOGFILENAME.PATH = %SVR.LOGFILENAME.PATH%,

etc...

Note: these variables are available in Titan 2019 and Cornerstone 2019 and later. They are not available in older versions of the software.




    • Related Articles

    • 2019: How-To: Using %DATE% variables in the Event Manager

      There may be a situation in the Event Manager when access to a specific date is required. For example, you may have a scheduled event that runs at midnight and needs to backup or move all logfiles from yesterday. Since this event is scheduled to run ...
    • Deleting old log files

      The Run File/Script action in the Titan/Cornerstone 2019 Events Management system can be used to delete old log files from the system. the parameters must be File/Script: cmd.exe parameter 1: /c del /F /Q parameter 2: "<the target of the delete ...
    • How To: Push/Upload a file with an event

      Question How can I push/upload a file with an event? Reasoning We could have a business process that requires files to be pushed to a remote server. This would consume time from the admin to manually push files and also be vulnerable to user error. ...
    • How To: Exclude File Types from Encryption in Titan MFT

      Question Can I restrict certain file types from being encrypted with PGP in Titan MFT? Reasoning To protect your data in Titan MFT, you can encrypt any uploaded files, however, you want to ensure you are not using server resources if not needed while ...
    • How To: Move Files with an event

      Question How do move a file with an event? Reasoning When files are uploaded, there may be a requirement to copy or move those files to another internal location for other internal automations to process that file, or you may want to just archive the ...