You can collect logs using the CloudWatch agent. For instructions on how to collect logs, see the Amazon CloudWatch manual.