This article covers the various log files used by SFTP Gateway.
Log file locations
These are the logs of interest when troubleshooting SFTP Gateway:
The log files within /opt/sftpgw/log/ have a retention of 30 days, or 3 GB (whichever of these comes first).
And this is what these logs do:
application.log: Java events and errors.
sftp-audit.log: SFTP actions and authentication.
secure: SSH authentication events
cloudinit.log: Server related issues that happen at first launch
It's often helpful to tail a log file while troubleshooting, to get a sense of timing:
tail -f application.log
If you want more verbose logging, insert this property into the
Note: You can also use
TRACE instead of
DEBUG, but this generates large amounts of output and can fill your disk up in a short period of time.
To apply your change, restart the Java service:
service sftpgw-admin-api restart
If you want to get the full Java stack trace you can run this command:
journalctl -u sftpgw-admin-api