Logging
Overview
This article covers the various log files used by SFTP Gateway.
Log file locations
These are the logs of interest when troubleshooting SFTP Gateway:
/opt/sftpgw/log/application.log
/opt/sftpgw/log/sftp-audit.log
/var/log/secure
/var/log/sftpgw/cloudinit.log
And this is what these logs do:
application.log
: Java events and errors.sftp-audit.log
: SFTP actions and authentication.secure
: SSH authentication eventscloudinit.log
: Server related issues that happen at first launch
Also, you can see the Java logs:
sudo su
journalctl -u sftpgw-admin-api # opens the log using `less`
journalctl -u sftpgw-admin-api -f # this is to tail or follow the log
The log files are streamed to CloudWatch. At the moment, there is a misconfiguration. We will include an article with details on working around this.