Deleting old log files

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 operation>"


Note: uncheck the option to Add Quotes, this is not necessary.


Note: parameter 1 must have /c as the very first item followed by a blank space followed by the del command 


Here's an example of an action to delete yesterday's log files.


This action, when executed, will look like this in the current system log.


For more information on using the server log file variables, see this solution


https://srthelpdesk.freshdesk.com/solution/articles/9000170378-using-event-manager-variables-for-log-file-access


for more information on using date variables, see this solution


https://srthelpdesk.freshdesk.com/solution/articles/9000170379-using-date-variables-in-the-event-manager


    • Related Articles

    • Video: Zipping Files Event

      This tutorial covers the steps to create an automated event which will zip files up when they arrive on the server.
    • PGP - Downloading/Renaming decrypted files

      Files that are decrypted and downloaded will have a .pgp file extension. The end-user can rename the file upon download.       
    • PGP - Downloading/Renaming decrypted files

      Files that are decrypted and downloaded will have a .pgp file extension. The end-user can rename the file upon download.
    • Importing users via CSV files

      Sometimes there is a need to import users though a CSV file. This can be done using a combination of PowerShell and the srxCFG utility. Lets assume we have a CSV file, users.csv, which looks like this: Username,FullName,EmailAddress user1,User Number ...
    • Error 2002 in the Titan log file

      Since Titan uses the registry for configuration information and a database only for Statistics Tracking, if the Error 2002 appears in the Titan log file and Stats tracking is disabled, this error can be safely ignored. If, however, stats tracking is ...