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

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 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 and Cornerstone. They are not available in older versions of the software.




    • Related Articles

    • 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 ...
    • How To: Create an Event that Sends an Email when the User Successfully Uploads a File

      How To: Create an Event that Sends an Email when the User Successfully Uploads a File Question Can you give me a quick guide on creating an event that sends an email to a specific address whenever a user uploads a file that contains information of ...
    • How To: Create a File Uploaded Event

      Question Can I create an automation that triggers once a file is uploaded into Titan SFTP Server? Reasoning As an admin, I would like to be able to create automations that perhaps can send email notifications or process the incoming files once ...
    • 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: Prohibit download of File Types

      Question Can I restrict a user from downloading certain file types once they login to Titan SFTP Server? Reasoning As an admin, I would like to restrict the file types users can download from Titan SFTP Server. This could be due to internal policies ...