Start a new topic

Deletion function of the log file

Dear SRT Support,

I received this request from many customers.

It is Titan FTP and the request of the log function of WebDrive.

They request the deletion function of the log file.

They say that they want to delete the log by a unit for every day or one week.

In other words, the customer wants to automatically delete the old log file.

3 people like this idea

The Run File/Script action in the Titan/Cornerstone 2019 and later 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

for more information on using date variables, see this solution

Hi Michael,

Thank you,

Is the following recognition correct? 


 Server Log -->:%SVR.BASELOGDIR%\Logs\%

 Local Administrator Server Log --> %SVR.LOGFILENAME.PREVIOUS.PATH%

Best Regards
Takashi Nishimura,
AdD Co., Ltd.

Login or Signup to post a comment
© 2016 South River Technologies®, Inc. - All Rights Reserved