Viewing Logs in CloudWatch
Overview
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 errorssftp-audit.log
: SFTP actions and authenticationsshd
: SSH authentication eventscloudinit.log
: Server related issues that happen at first launch