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 ...
    • 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 ...