Once you have configured Log Drains for daily access to your logs (e.g., for searching and alerting purposes), you should also configure backup log delivery to Amazon S3. Having this backup method will help ensure that, in the event, your primary logging provider experiences delivery or availability issues, your ability to retain logs for compliance purposes will not be impacted.
Aptible provides this disaster-recovery option by uploading archives of your container logs to an S3 bucket owned by you, where you can define any retention policies as needed.
To begin sending log archives to an S3 bucket, you must have your own AWS account and an S3 bucket configured for this purpose.
This must be the sole purpose of your S3 bucket (that is, do not add other content to this bucket), your S3 bucket must have versioning enabled, and your S3 bucket must be in the same region as your Stack. To enable S3 bucket versioning via the AWS Console, visit the Properties tab of your S3 bucket, click Edit under Bucket Versioning, choose Enable, and then Save Changes.
Once you have created a bucket and enabled versioning, apply the following policy to the bucket in order to allow Aptible to replicate objects to it.
YOUR_BUCKET_NAME
in both “Resource” sections with the name of your bucket. Contact Aptible Support to request access to this limited beta. We will need to know:
To ensure you only need to read or process each file once, we do not upload any files which are actively being written to. This means we will only upload a log archive file when either of two conditions is met:
Aptible will upload log files at the bottom of every hour (1:30, 2:30, etc.).
If you have long-running containers that generate a low volume of logs, you may need to restart the App or Database periodically to flush the log archives to S3. As such, this feature is only intended to be used as a disaster archive for compliance purposes, not for the troubleshooting of running services, data processing pipelines, or any usage that mandates near-realtime access.
You should not need access the log files from your S3 bucket directly, as Aptible has provided a command in our CLI that provides you the ability to search, download and decrypt your container logs: aptible logs_from_archive
.
This utility has no reliance on Aptible’s services, and since the S3 bucket is under your ownership, you may use it to access your Log Archive even if you are no longer a customer of Aptible.
Files stored in your S3 bucket are encrypted with an AES-GCM 256-bit key, protecting your data in transit and at rest in your S3 bucket. Decryption is handled automatically upon retrieval via the Aptible CLI.
The files are stored and downloaded in gzip format to minimize storage and transfer costs.
Once uncompressed, the logs will be in the JSON format as emitted by Docker. For example:
Once you have configured Log Drains for daily access to your logs (e.g., for searching and alerting purposes), you should also configure backup log delivery to Amazon S3. Having this backup method will help ensure that, in the event, your primary logging provider experiences delivery or availability issues, your ability to retain logs for compliance purposes will not be impacted.
Aptible provides this disaster-recovery option by uploading archives of your container logs to an S3 bucket owned by you, where you can define any retention policies as needed.
To begin sending log archives to an S3 bucket, you must have your own AWS account and an S3 bucket configured for this purpose.
This must be the sole purpose of your S3 bucket (that is, do not add other content to this bucket), your S3 bucket must have versioning enabled, and your S3 bucket must be in the same region as your Stack. To enable S3 bucket versioning via the AWS Console, visit the Properties tab of your S3 bucket, click Edit under Bucket Versioning, choose Enable, and then Save Changes.
Once you have created a bucket and enabled versioning, apply the following policy to the bucket in order to allow Aptible to replicate objects to it.
YOUR_BUCKET_NAME
in both “Resource” sections with the name of your bucket. Contact Aptible Support to request access to this limited beta. We will need to know:
To ensure you only need to read or process each file once, we do not upload any files which are actively being written to. This means we will only upload a log archive file when either of two conditions is met:
Aptible will upload log files at the bottom of every hour (1:30, 2:30, etc.).
If you have long-running containers that generate a low volume of logs, you may need to restart the App or Database periodically to flush the log archives to S3. As such, this feature is only intended to be used as a disaster archive for compliance purposes, not for the troubleshooting of running services, data processing pipelines, or any usage that mandates near-realtime access.
You should not need access the log files from your S3 bucket directly, as Aptible has provided a command in our CLI that provides you the ability to search, download and decrypt your container logs: aptible logs_from_archive
.
This utility has no reliance on Aptible’s services, and since the S3 bucket is under your ownership, you may use it to access your Log Archive even if you are no longer a customer of Aptible.
Files stored in your S3 bucket are encrypted with an AES-GCM 256-bit key, protecting your data in transit and at rest in your S3 bucket. Decryption is handled automatically upon retrieval via the Aptible CLI.
The files are stored and downloaded in gzip format to minimize storage and transfer costs.
Once uncompressed, the logs will be in the JSON format as emitted by Docker. For example: