Viewing Logs in CloudWatch
If you deployed SFTP Gateway using CloudFormation from the AWS marketplace, you should have CloudWatch automatically connected to your instance.
With CloudWatch, you will be able to aggregate and view the Logs of your instance.
Navigating to CloudWatch
In CloudFormation, click on your SFTP Gateway stack. Then, click on the Resources tab.
For the LogGroup, click the link under the
Physical ID category.
This will take you to CloudWatch, where you will see the details page for the SFTP Gateway Log Group.
If you scroll down to the Log streams tab, you should see the four main logs for SFTP Gateway.
And this is what these logs do:
application.log: Java events and errors
sftp-audit.log: SFTP actions and authentication
sshd: SSH authentication events
cloudinit.log: Server related issues that happen at first launch