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

    • How To: Enable PGP Encryption

      Question How do I encrypt files in transit or at rest? Reasoning Keeping files secure is always a concern. Either at rest once they are uploaded to Cornerstone or in transit while the file is still being uploaded even if using a secure protocol. If ...
    • 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 ...
    • 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 ...
    • 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.