Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

hariri

everyday log

Log file name can contain following patterns: !Y (year), !M (month), !D (day), !T (time), !@ (hostname), !S (session name), !P (process ID), !! (exclamation mark).
for example:
c:\ftp\!S!Y!M!D.log
martin

Re: EXTREMELY LARGE WINSCP LOG FILES

Are the scripts running under the same local account? If they are not, it can be that one account has debug logging configured:
https://winscp.net/eng/docs/ui_pref_logging
Otherwise, it's difficult to help you without seeing at least a snippet of the logs.
stevem16

Extremely large WinSCP log files

Hi,

Have a question regarding the WINSCP log file creation when scripting. We run a large number of scripts every day. We appear to have an intermittent problem with FTP's failing. When investigating, the log file from WINSCP is extremely large (close to 1GB) and can't even be opened. I've deleted the log file and then reran the script successfully. The log file the 2nd time (successful execution) is still extremely large.

I've done an analysis of our scripts and found examples where we have 2 identical scripts (except for the file name being sent) connecting to the same location, same log file parameters etc.... The one script creates a log file of 1,164KB the other 451,832KB. I don't understand how there can be such a discrepancy in the log file sizes. Can this be caused by multiple scripts running at the same time? Each script writes to a different log file name.

Here are the 2 scripts I mentioned above:

c:
cd\Program Files\winSCP
winscp.exe /script=E:\ESP\Scripts\FTPCNTL\BLKFTPGT.txt /log=e:\esp\scripts\logs\BLKFTPGT.txt



c:
cd\Program Files\winSCP
winscp.exe /script=E:\ESP\Scripts\FTPCNTL\BLKFTPET.txt /log=e:\esp\scripts\logs\BLKFTPET.txt




I'm at a loss... Any help, ideas would be appreciated.

Thanks,
Steve