Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
After collecting logs, you may want to export logs from CloudWatch to an S3 Bucket. This is useful as storing data in S3 is more cost effective and reliable than storing it in CloudWatch, making S3 a good option for long-term storage and archival of log files.
securitylablogs
in the search bar. Click on the log group that appears in the results.You will have to fill out information about what data to export.
YYYY/MM/DD
field to today’s date (the date you are doing this lab). This is the earliest creation date of logs you want to export.YYYY/MM/DD
field to tomorrow’s date (the date after the day you are doing this lab). This is the latest creation date of logs you want to export.wa-lab-<your-account-id>-<date>
. This is the bucket your logs will be exported to.lablogs
. This is the subdirectory your exported logs will be stored in.Click Export
Click on the View export tasks in the pop up box that appears. This will bring you to a list of Export tasks performed from CloudWatch
.gz
files if you’d like to see their contents.Recap: In this portion of the lab, you exported logs from CloudWatch to S3, a good way to archive logs for long term storage. This demonstrates an important component of the security best practice of “configuring logging centrally” - the ability to extract meaningful insights from large volumes of log data. Compared with CloudWatch, storing log files in S3 is more cost-effective and allows you to use lifecycle policies on your stored logs. As the volume of logs generated by your workloads increase, so does the value of storing these data in S3. It also enables you to analyze logs from Athena, as you will see in the next section.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool