Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Find post system setting erod
martin

Re: Delete Old Logs

No.
bjellesma

Re: Delete Old Logs

Ok thanks! We've actually started to take a look at archiving our older logs. So once the logs hit the size limit that we specify, we copy the file over to a compressed archive and delete the log. Does WinSCP have any functionality like this built in?
martin

Re: Delete Old Logs

Do you want to cleanup local logs of WinSCP by PowerShell?

Or do you want to you cleanup some remote logs using WinSCP?
bjellesma

Delete Old Logs

Hi,
Are you able to use the .NET assembly in powershell to delete logs older than a certain date? We're automating a process and, to maintain the log size, we want to delete any logs older than 30 days. I see using the CLI that you can specify a log size https://winscp.net/eng/docs/commandline#logging